From 7931374e4ee6e4dd475d2f58dd4023c1509933f8 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 8 Aug 2023 14:43:09 +0000 Subject: [PATCH] style: format code with black and isort Format code with black and isort This commit fixes the style issues introduced in ce5c516 according to the output from Black and isort. Details: None --- src/__main__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/__main__.py b/src/__main__.py index d2660f1..a14e28b 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -31,7 +31,9 @@ def main(): # Add arguments # General arguments - argparser.add_argument('--log-level', '-l', help='Log level', default='INFO') # noqa E501 + argparser.add_argument( + "--log-level", "-l", help="Log level", default="INFO" + ) # noqa E501 # Credential arguments credential_args.add_argument( @@ -81,8 +83,6 @@ def main(): set_primary_logger(args.log_level) logger.debug(args) - - # Load variables global TOKEN global ACCOUNT_ID @@ -133,6 +133,7 @@ def delete_from_cloudflare(args): lists = utils.filter_adblock_lists(lists) delete.delete_adblock_list(lists, ACCOUNT_ID, TOKEN) + def set_primary_logger(log_level): logger.remove() # ^10 is a formatting directive to center with a padding of 10