Skip to content

Commit b6c2728

Browse files
chore: update pre-commit hooks (#382)
* chore: update pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.13.2 → v0.14.13](astral-sh/ruff-pre-commit@v0.13.2...v0.14.13) - [github.com/pycqa/isort: 6.0.1 → 7.0.0](PyCQA/isort@6.0.1...7.0.0) - [github.com/pre-commit/mirrors-mypy: v1.18.2 → v1.19.1](pre-commit/mirrors-mypy@v1.18.2...v1.19.1) - [github.com/scientific-python/cookie: 2025.05.02 → 2025.11.21](scientific-python/cookie@2025.05.02...2025.11.21) - [github.com/numpy/numpydoc: v1.9.0 → v1.10.0](numpy/numpydoc@v1.9.0...v1.10.0) * Align pre-commit-config and pyproject with SciTools template. * Align pre-commit-config and pyproject with SciTools template. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Martin Yeo <martin.yeo@metoffice.gov.uk>
1 parent c338e49 commit b6c2728

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
ci:
77
autofix_prs: false
8+
autofix_commit_msg: "style: pre-commit fixes"
89
autoupdate_commit_msg: "chore: update pre-commit hooks"
10+
autoupdate_schedule: "monthly"
911

1012
repos:
1113
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -38,9 +40,9 @@ repos:
3840

3941

4042
- repo: https://github.com/astral-sh/ruff-pre-commit
41-
rev: "v0.13.2"
43+
rev: "v0.14.13"
4244
hooks:
43-
- id: ruff
45+
- id: ruff-check
4446
types: [file, python]
4547
args: [--fix, --show-fixes]
4648
- id: ruff-format
@@ -56,7 +58,7 @@ repos:
5658

5759

5860
- repo: https://github.com/pycqa/isort
59-
rev: '6.0.1'
61+
rev: '7.0.0'
6062
hooks:
6163
- id: isort
6264
name: isort (cython)
@@ -70,7 +72,7 @@ repos:
7072
types: [file, python]
7173

7274
- repo: https://github.com/pre-commit/mirrors-mypy
73-
rev: 'v1.18.2'
75+
rev: 'v1.19.1'
7476
hooks:
7577
- id: mypy
7678
exclude: 'noxfile\.py|docs/conf\.py'
@@ -82,14 +84,14 @@ repos:
8284
- id: validate-pyproject
8385

8486
- repo: https://github.com/scientific-python/cookie
85-
rev: 2025.05.02
87+
rev: 2025.11.21
8688
hooks:
8789
- id: sp-repo-review
8890
additional_dependencies: ["repo-review[cli]"]
8991
args: ["--show=errskip"]
9092

9193
- repo: https://github.com/numpy/numpydoc
92-
rev: v1.9.0
94+
rev: v1.10.0
9395
hooks:
9496
- id: numpydoc-validation
9597
types: [file, python]

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ ignore = [
7777
[tool.pytest.ini_options]
7878
addopts = "-ra -v --doctest-modules"
7979
testpaths = ["src/stratify"]
80+
log_level = "INFO"
8081

8182
[tool.mypy]
8283
disable_error_code = ["call-arg", "no-untyped-def", "no-untyped-call", "attr-defined", "misc", "index", "var-annotated", "assignment"]
@@ -254,8 +255,12 @@ convention = "numpy"
254255
ignore-words-list = "ND,Nd"
255256

256257
[tool.repo-review]
257-
# These are a list of the currently failing tests to be fixed later:
258+
258259
ignore = [
260+
# https://learn.scientific-python.org/development/guides/packaging-simple#PP006
261+
"PP006", # Uses dev dependency group
262+
263+
# These are a list of the currently failing tests to be fixed later:
259264
"PY004", # Has docs folder
260265
"PP302", # Sets a minimum pytest to at least 6
261266
"PP304", # Sets the log level in pytest

0 commit comments

Comments
 (0)