Skip to content

Commit

Permalink
Add more black configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Jan 5, 2024
1 parent a9d13ca commit 4b85d74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions cli/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 2 additions & 6 deletions cli/repro_zipfile_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4b85d74

Please sign in to comment.