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
This commit is contained in:
parent
ce5c516de1
commit
7931374e4e
|
@ -31,7 +31,9 @@ def main():
|
||||||
# Add arguments
|
# Add arguments
|
||||||
|
|
||||||
# General 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 arguments
|
||||||
credential_args.add_argument(
|
credential_args.add_argument(
|
||||||
|
@ -81,8 +83,6 @@ def main():
|
||||||
set_primary_logger(args.log_level)
|
set_primary_logger(args.log_level)
|
||||||
logger.debug(args)
|
logger.debug(args)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Load variables
|
# Load variables
|
||||||
global TOKEN
|
global TOKEN
|
||||||
global ACCOUNT_ID
|
global ACCOUNT_ID
|
||||||
|
@ -133,6 +133,7 @@ def delete_from_cloudflare(args):
|
||||||
lists = utils.filter_adblock_lists(lists)
|
lists = utils.filter_adblock_lists(lists)
|
||||||
delete.delete_adblock_list(lists, ACCOUNT_ID, TOKEN)
|
delete.delete_adblock_list(lists, ACCOUNT_ID, TOKEN)
|
||||||
|
|
||||||
|
|
||||||
def set_primary_logger(log_level):
|
def set_primary_logger(log_level):
|
||||||
logger.remove()
|
logger.remove()
|
||||||
# ^10 is a formatting directive to center with a padding of 10
|
# ^10 is a formatting directive to center with a padding of 10
|
||||||
|
|
Loading…
Reference in New Issue