Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#428)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.3 →
v0.7.4](astral-sh/ruff-pre-commit@v0.7.3...v0.7.4)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kemal Zebari <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and kemzeb authored Nov 25, 2024
1 parent f9be6f3 commit 85796be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repos:
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.7.3"
rev: "v0.7.4"
hooks:
- id: ruff-format
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion src/pipdeptree/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from pipdeptree._warning import WarningPrinter, WarningType, get_warning_printer


def main(args: Sequence[str] | None = None) -> None | int:
def main(args: Sequence[str] | None = None) -> int | None:
"""CLI - The main function called as entry point."""
options = get_options(args)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_parser_svg() -> None:
(False, [], float("inf")),
],
)
def test_parser_depth(should_be_error: bool, depth_arg: list[str], expected_value: None | float) -> None:
def test_parser_depth(should_be_error: bool, depth_arg: list[str], expected_value: float | None) -> None:
parser = build_parser()

if should_be_error:
Expand Down

0 comments on commit 85796be

Please sign in to comment.