From 6cee20fae9afa86de047c2ea8a82111db7ec0890 Mon Sep 17 00:00:00 2001 From: nico wellpott Date: Wed, 16 Nov 2022 22:13:30 +0100 Subject: [PATCH] build(ci): add black to ci flow --- setup.py | 4 ++-- src/blimp/bl_process.py | 1 - src/blimp/cli.py | 12 ++++++++++-- src/blimp/main.py | 1 + 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index e1c29d3..9fe202f 100644 --- a/setup.py +++ b/setup.py @@ -8,6 +8,6 @@ setup( "requests>=2.25", "ruamel.yaml>=0.17", "ruamel.yaml.clib>=0.2", - "urllib3>=1.26" - ] + "urllib3>=1.26", + ], ) diff --git a/src/blimp/bl_process.py b/src/blimp/bl_process.py index 88cb9ef..06650ba 100644 --- a/src/blimp/bl_process.py +++ b/src/blimp/bl_process.py @@ -9,7 +9,6 @@ class ProcessBlocklist: def __init__(self): pass - @classmethod def process(self, blacklist, outfile, dryrun: bool): """ diff --git a/src/blimp/cli.py b/src/blimp/cli.py index 2049ed5..284a320 100644 --- a/src/blimp/cli.py +++ b/src/blimp/cli.py @@ -7,8 +7,16 @@ from blimp.main import Blimp def cli(): parser = argparse.ArgumentParser() - parser.add_argument("-out", "--outfile", help="set path to output file", action="store", default=None) - parser.add_argument("-dr", "--dry-run", help="perform a dry run", action="store_true", default=False) + parser.add_argument( + "-out", + "--outfile", + help="set path to output file", + action="store", + default=None, + ) + parser.add_argument( + "-dr", "--dry-run", help="perform a dry run", action="store_true", default=False + ) args = parser.parse_args() # run diff --git a/src/blimp/main.py b/src/blimp/main.py index 7b9106a..542bf30 100644 --- a/src/blimp/main.py +++ b/src/blimp/main.py @@ -91,4 +91,5 @@ class Blimp: if __name__ == "__main__": from blimp.cli import cli + cli()