From 4b85d7449b63952cb78cab6225deeeb3f49f0bb2 Mon Sep 17 00:00:00 2001 From: Jay Qi Date: Fri, 5 Jan 2024 16:04:39 -0500 Subject: [PATCH] Add more black configuration --- cli/pyproject.toml | 5 +++++ cli/repro_zipfile_cli.py | 8 ++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/cli/pyproject.toml b/cli/pyproject.toml index ec0219b..2701138 100644 --- a/cli/pyproject.toml +++ b/cli/pyproject.toml @@ -38,3 +38,8 @@ Source = "https://github.com/drivendataorg/repro-zipfile/tree/main/cli" [tool.hatch.version] path = "repro_zipfile_cli.py" + +## TOOLS ## + +[tool.black] +line-length = 99 diff --git a/cli/repro_zipfile_cli.py b/cli/repro_zipfile_cli.py index 7aa3d44..e67068b 100644 --- a/cli/repro_zipfile_cli.py +++ b/cli/repro_zipfile_cli.py @@ -33,9 +33,7 @@ def version_callback(value: bool): def reprozip( out_file: Annotated[ str, - typer.Argument( - help="Path of output archive. '.zip' suffix will be added if not present." - ), + typer.Argument(help="Path of output archive. '.zip' suffix will be added if not present."), ], in_list: Annotated[List[str], typer.Argument(help="Files to add to the archive.")], recurse_paths: Annotated[ @@ -87,9 +85,7 @@ def reprozip( log_handler = logging.StreamHandler() logger.addHandler(log_handler) prog_name = Path(sys.argv[0]).stem - log_formatter = logging.Formatter( - f"%(asctime)s | {prog_name} | %(levelname)s | %(message)s" - ) + log_formatter = logging.Formatter(f"%(asctime)s | {prog_name} | %(levelname)s | %(message)s") log_handler.setFormatter(log_formatter) logger.debug("out_file: %s", out_file)