From fbd4c8b21955a7f25a06a08b8d652d10d70d490a Mon Sep 17 00:00:00 2001 From: Tom Marks Date: Tue, 26 Jun 2018 23:09:13 -0400 Subject: [PATCH] Flake8ification --- thanks/cli.py | 5 ++--- thanks/thanks.py | 11 ++++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/thanks/cli.py b/thanks/cli.py index 3393243..6fb1d93 100644 --- a/thanks/cli.py +++ b/thanks/cli.py @@ -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 @@ -46,4 +45,4 @@ def main(package_name, requirements, pipfile, if __name__ == "__main__": import sys - sys.exit(cli()) + sys.exit(main()) diff --git a/thanks/thanks.py b/thanks/thanks.py index 1b7b3a0..4fd34b4 100644 --- a/thanks/thanks.py +++ b/thanks/thanks.py @@ -10,7 +10,7 @@ import requests import termcolor import toml -from termcolor import colored, cprint +from termcolor import colored from . import package_tools @@ -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 @@ -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 = [