Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# 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"
autoupdate_commit_msg: "chore(pre-commit.ci): pre-commit autoupdate"

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
Expand All @@ -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: []
14 changes: 7 additions & 7 deletions src/vr180_convert/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/vr180_convert/remapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/vr180_convert/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def inverse_transform(
def FisheyeDecoder(
mapping_type: Literal[
"rectilinear", "stereographic", "equidistant", "equisolid", "orthographic"
]
],
) -> InverseTransformer[FisheyeEncoder]:
"""
Decodes fisheye image.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dunder_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_remapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_apply(
"equisolid",
"orthographic",
"equirectangular",
]
],
) -> None:
encoder = (
FisheyeEncoder(format)
Expand Down
Loading