@@ -20,19 +20,19 @@ repos:
2020 - id : no-commit-to-branch # Prevent committing to main / master
2121 - id : check-added-large-files # Check for large files added to git
2222 - id : check-merge-conflict # Check for files that contain merge conflict
23- - repo : https://github.com/pre-commit/pygrep-hooks
24- rev : v1.10.0 # Use the ref you want to point at
25- hooks :
26- - id : python-use-type-annotations # Check for missing type annotations
27- - id : python-check-blanket-noqa # Check for # noqa: all
28- - id : python-no-log-warn # Check for log.warn
23+ - repo : https://github.com/pre-commit/pygrep-hooks
24+ rev : v1.10.0 # Use the ref you want to point at
25+ hooks :
26+ - id : python-use-type-annotations # Check for missing type annotations
27+ - id : python-check-blanket-noqa # Check for # noqa: all
28+ - id : python-no-log-warn # Check for log.warn
2929- repo : https://github.com/psf/black-pre-commit-mirror
3030 rev : 25.9.0
3131 hooks :
3232 - id : black
3333 args : [--line-length=120]
3434- repo : https://github.com/pycqa/isort
35- rev : 6.1 .0
35+ rev : 7.0 .0
3636 hooks :
3737 - id : isort
3838 args :
4141 - --profile black
4242 - --project anemoi
4343- repo : https://github.com/astral-sh/ruff-pre-commit
44- rev : v0.13 .3
44+ rev : v0.14 .3
4545 hooks :
4646 - id : ruff
4747 args :
5050 - --exit-non-zero-on-fix
5151 - --exclude=docs/**/*_.py
5252- repo : https://github.com/sphinx-contrib/sphinx-lint
53- rev : v1.0.0
53+ rev : v1.0.1
5454 hooks :
5555 - id : sphinx-lint
5656# For now, we use it. But it does not support a lot of sphinx features
@@ -65,20 +65,21 @@ repos:
6565 - id : docconvert
6666 args : ["numpy"]
6767- repo : https://github.com/tox-dev/pyproject-fmt
68- rev : " v2.7 .0"
68+ rev : " v2.11 .0"
6969 hooks :
7070 - id : pyproject-fmt
71- - repo : https://github.com/jshwi/docsig # Check docstrings against function sig
72- rev : v0.71.0
73- hooks :
74- - id : docsig
75- args :
76- - --ignore-no-params # Allow docstrings without parameters
77- - --check-dunders # Check dunder methods
78- - --check-overridden # Check overridden methods
79- - --check-protected # Check protected methods
80- - --check-class # Check class docstrings
81- - --disable=SIG101,SIG102 # Disable empty docstrings
71+ args : ["--max-supported-python", "3.12"]
72+ - repo : https://github.com/jshwi/docsig # Check docstrings against function sig
73+ rev : v0.71.0
74+ hooks :
75+ - id : docsig
76+ args :
77+ - --ignore-no-params # Allow docstrings without parameters
78+ - --check-dunders # Check dunder methods
79+ - --check-overridden # Check overridden methods
80+ - --check-protected # Check protected methods
81+ - --check-class # Check class docstrings
82+ - --disable=SIG101,SIG102 # Disable empty docstrings
8283ci :
8384 autoupdate_schedule : monthly
8485 autoupdate_commit_msg : " chore(deps): pre-commit.ci autoupdate"
0 commit comments