From 85796bef3c7af6defb1872307e9848b7dd1d09cf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 08:26:02 -0800 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#428) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.3 → v0.7.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.3...v0.7.4) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kemal Zebari --- .pre-commit-config.yaml | 2 +- src/pipdeptree/__main__.py | 2 +- tests/test_cli.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4f595b3..935db77 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/src/pipdeptree/__main__.py b/src/pipdeptree/__main__.py index 0edf246..ff12bcb 100644 --- a/src/pipdeptree/__main__.py +++ b/src/pipdeptree/__main__.py @@ -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) diff --git a/tests/test_cli.py b/tests/test_cli.py index bf3604b..d2c3c62 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -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: