From b6be494deb563b96bd8e5e8e8aa410a7e3867c85 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Oct 2026 17:29:42 +0000 Subject: [PATCH 1/2] chore(pre-commit.ci): pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/commitizen-tools/commitizen: v3.27.0 → v4.19.1](https://github.com/commitizen-tools/commitizen/compare/v3.27.0...v4.19.1) - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v6.0.0) - [github.com/python-poetry/poetry: 1.8.3 → 2.5.1](https://github.com/python-poetry/poetry/compare/1.8.3...2.5.1) - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8) - [github.com/astral-sh/ruff-pre-commit: v0.4.9 → v0.16.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.9...v0.16.10) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 24.4.2 → 26.10.0](https://github.com/psf/black-pre-commit-mirror/compare/24.4.2...26.10.0) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.3](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.3) - [github.com/pre-commit/mirrors-mypy: v1.10.0 → v2.4.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.0...v2.4.0) --- .pre-commit-config.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 105853d..0b0ca37 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks exclude: "CHANGELOG.md|.copier-answers.yml|.all-contributorsrc" -default_stages: [commit] +default_stages: [pre-commit] ci: autofix_commit_msg: "chore(pre-commit.ci): auto fixes" @@ -9,12 +9,12 @@ ci: repos: - repo: https://github.com/commitizen-tools/commitizen - rev: v3.27.0 + rev: v4.19.1 hooks: - id: commitizen stages: [commit-msg] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: debug-statements - id: check-builtin-literals @@ -28,29 +28,29 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/python-poetry/poetry - rev: 1.8.3 + rev: 2.5.1 hooks: - id: poetry-check - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.1.0 + rev: v4.0.0-alpha.8 hooks: - id: prettier args: ["--tab-width", "2"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.9 + rev: v0.16.10 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - - repo: https://github.com/psf/black - rev: 24.4.2 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.10.0 hooks: - id: black - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.3 hooks: - id: codespell - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v2.4.0 hooks: - id: mypy additional_dependencies: [] From 35d105628ba6c55556cddc0f55bb1213d7d31a7a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Oct 2026 18:22:06 +0000 Subject: [PATCH 2/2] chore(pre-commit.ci): auto fixes --- src/vr180_convert/__init__.py | 14 +++++++------- src/vr180_convert/remapper.py | 2 +- src/vr180_convert/transformer.py | 2 +- tests/test_dunder_main.py | 2 +- tests/test_remapper.py | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/vr180_convert/__init__.py b/src/vr180_convert/__init__.py index f68c703..7b63381 100644 --- a/src/vr180_convert/__init__.py +++ b/src/vr180_convert/__init__.py @@ -15,17 +15,17 @@ ) __all__ = [ - "TransformerBase", - "ZoomTransformer", - "MultiTransformer", - "NormalizeTransformer", - "PolarRollTransformer", "DenormalizeTransformer", - "FisheyeDecoder", - "FisheyeEncoder", "EquirectangularEncoder", "Euclidean3DRotator", "Euclidean3DTransformer", + "FisheyeDecoder", + "FisheyeEncoder", + "MultiTransformer", + "NormalizeTransformer", + "PolarRollTransformer", + "TransformerBase", + "ZoomTransformer", "apply", "apply_lr", "get_map", diff --git a/src/vr180_convert/remapper.py b/src/vr180_convert/remapper.py index c68d4c4..b28e768 100644 --- a/src/vr180_convert/remapper.py +++ b/src/vr180_convert/remapper.py @@ -325,7 +325,7 @@ def apply( transformer: TransformerBase, *, in_paths: Sequence[Path | str | NDArray] | Path | str | NDArray, - out_paths: Sequence[Path | str] | None | Path | str = None, + out_paths: Sequence[Path | str] | Path | str | None = None, size_output: tuple[int, int] = (2048, 2048), interpolation: int = cv.INTER_LANCZOS4, boarder_mode: int = cv.BORDER_CONSTANT, diff --git a/src/vr180_convert/transformer.py b/src/vr180_convert/transformer.py index 2699852..d8e7598 100644 --- a/src/vr180_convert/transformer.py +++ b/src/vr180_convert/transformer.py @@ -418,7 +418,7 @@ def inverse_transform( def FisheyeDecoder( mapping_type: Literal[ "rectilinear", "stereographic", "equidistant", "equisolid", "orthographic" - ] + ], ) -> InverseTransformer[FisheyeEncoder]: """ Decodes fisheye image. diff --git a/tests/test_dunder_main.py b/tests/test_dunder_main.py index 11367ff..711642b 100644 --- a/tests/test_dunder_main.py +++ b/tests/test_dunder_main.py @@ -5,7 +5,7 @@ def test_can_run_as_python_module(): """Run the CLI as a Python module.""" result = subprocess.run( - [sys.executable, "-m", "vr180_convert", "--help"], # noqa S603,S607 + [sys.executable, "-m", "vr180_convert", "--help"], check=True, capture_output=True, ) diff --git a/tests/test_remapper.py b/tests/test_remapper.py index 3d65d1c..d6834aa 100644 --- a/tests/test_remapper.py +++ b/tests/test_remapper.py @@ -58,7 +58,7 @@ def test_apply( "equisolid", "orthographic", "equirectangular", - ] + ], ) -> None: encoder = ( FisheyeEncoder(format)