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
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 24.10.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
hooks:
- id: black
name: black
Expand All @@ -13,7 +13,7 @@ repos:
types_or: [python, pyi]

- repo: https://github.com/pycqa/flake8
rev: 7.1.1
rev: 7.3.0
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -22,19 +22,19 @@ repos:
- flake8-simplify

- repo: https://github.com/asottile/pyupgrade
rev: v3.18.0
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py310-plus]

- repo: https://github.com/asottile/reorder-python-imports
rev: v3.14.0
rev: v3.16.0
hooks:
- id: reorder-python-imports
args: [--py310-plus, --add-import, "from __future__ import annotations"]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-builtin-literals
- id: check-added-large-files
Expand Down Expand Up @@ -66,7 +66,7 @@ repos:
# additional_dependencies: [".[toml]"]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.12.0
rev: v1.19.1
hooks:
- id: mypy
language_version: python3.12
Expand Down
2 changes: 1 addition & 1 deletion src/model_metadata/model_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def infer_range(


def range_as_tuple(
range: tuple[float, float] | None
range: tuple[float, float] | None,
) -> tuple[None, None] | tuple[float, float]:
if range is None:
return (None, None)
Expand Down
Loading