Skip to content

Commit

Permalink
Flake8ification
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdottom committed Jun 27, 2018
1 parent c672a2e commit fbd4c8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
5 changes: 2 additions & 3 deletions thanks/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
@click.option("--outfile", "-o",
type=click.File("w"),
default="-", help='Save output to file')
def main(package_name, requirements, pipfile,
# setuppy,
def main(package_name, requirements, pipfile, # setuppy,
debug, outfile):
if debug:
logger.level = logging.DEBUG
Expand All @@ -46,4 +45,4 @@ def main(package_name, requirements, pipfile,

if __name__ == "__main__":
import sys
sys.exit(cli())
sys.exit(main())
11 changes: 6 additions & 5 deletions thanks/thanks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import requests
import termcolor
import toml
from termcolor import colored, cprint
from termcolor import colored

from . import package_tools

Expand Down Expand Up @@ -55,8 +55,8 @@ def pipfile(self, pipfile):
def _get_local_data(self, project_name):
try:
metadata = package_tools.get_local_metadata(project_name)
funding_link=metadata.get('funding_url', '')
authors=metadata.get('author', '')
funding_link = metadata.get('funding_url', '')
authors = metadata.get('author', '')
if not any([funding_link, authors]):
return None

Expand Down Expand Up @@ -98,8 +98,9 @@ def _uncolored(text, *args, **kwargs):
colored('You depend on {} who would {}'.format(
colored('{} authors'.format(len(self.give_thanks_to)), 'cyan'),
colored('enjoy donations!', 'green'),
),
attrs=['bold'])
),
attrs=['bold']
)
)

colorized_data = [
Expand Down

0 comments on commit fbd4c8b

Please sign in to comment.