Skip to content

Commit 85796be

Browse files
[pre-commit.ci] pre-commit autoupdate (#428)
<!--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]>
1 parent f9be6f3 commit 85796be

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.7.3"
27+
rev: "v0.7.4"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff

src/pipdeptree/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from pipdeptree._warning import WarningPrinter, WarningType, get_warning_printer
1515

1616

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

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_parser_svg() -> None:
7070
(False, [], float("inf")),
7171
],
7272
)
73-
def test_parser_depth(should_be_error: bool, depth_arg: list[str], expected_value: None | float) -> None:
73+
def test_parser_depth(should_be_error: bool, depth_arg: list[str], expected_value: float | None) -> None:
7474
parser = build_parser()
7575

7676
if should_be_error:

0 commit comments

Comments
 (0)