diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6f852f711..3acbeb4a9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,7 +40,7 @@ repos: types_or: [yaml, html, json] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.16.1" + rev: "v1.17.0" hooks: - id: mypy files: ipykernel @@ -74,7 +74,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.4 + rev: v0.12.4 hooks: - id: ruff types_or: [python, jupyter] @@ -83,7 +83,7 @@ repos: types_or: [python, jupyter] - repo: https://github.com/scientific-python/cookie - rev: "2025.01.22" + rev: "2025.05.02" hooks: - id: sp-repo-review additional_dependencies: ["repo-review[cli]"] diff --git a/pyproject.toml b/pyproject.toml index e6404d973..73007bc0e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -256,6 +256,7 @@ ignore = [ # Unused method argument: "ARG002", # `open()` should be replaced by `Path.open()` + "PLC0415", # `import` should be at the top-level of a file "PTH123", "UP007", # use `X | Y` for type annotations, this does not works for dynamic getting type hints on older python "UP031", # Use format specifiers instead of percent format