Skip to content

Commit

Permalink
Black Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaos599 committed Oct 30, 2024
1 parent b31d71b commit 8bfaa03
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 9 additions & 3 deletions pdfly/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def version_callback(value: bool) -> None:

entry_point = typer.Typer(
add_completion=False,
help=("pdfly is a pure-python cli application for manipulating PDF files."),
help=(
"pdfly is a pure-python cli application for manipulating PDF files."
),
rich_markup_mode="rich", # Allows to pretty-print commands documentation
)

Expand Down Expand Up @@ -97,7 +99,9 @@ def cat(
fn_pgrgs: List[str] = typer.Argument( # noqa
..., help="filenames and/or page ranges"
),
verbose: bool = typer.Option(False, help="show page ranges as they are being read"),
verbose: bool = typer.Option(
False, help="show page ranges as they are being read"
),
) -> None:
pdfly.cat.main(filename, fn_pgrgs, output, verbose)

Expand All @@ -119,7 +123,9 @@ def rm(
fn_pgrgs: List[str] = typer.Argument( # noqa
..., help="filenames and/or page ranges"
),
verbose: bool = typer.Option(False, help="show page ranges as they are being read"),
verbose: bool = typer.Option(
False, help="show page ranges as they are being read"
),
) -> None:
pdfly.rm.main(filename, fn_pgrgs, output, verbose)

Expand Down
4 changes: 3 additions & 1 deletion pdfly/uncompress.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ def main(pdf: Path, output: Path) -> None:
uncomp_size = output.stat().st_size

print(f"Original Size : {orig_size:,}")
print(f"Uncompressed Size: {uncomp_size:,} ({(uncomp_size / orig_size) * 100:.1f}% of original)")
print(
f"Uncompressed Size: {uncomp_size:,} ({(uncomp_size / orig_size) * 100:.1f}% of original)"
)


def decompress_content_stream(content: IndirectObject) -> None:
Expand Down

0 comments on commit 8bfaa03

Please sign in to comment.