Skip to content
22 changes: 14 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ repos:
- tomli
exclude: (\.(svg|png|pdf)$)|(CODE_OF_CONDUCT.md)

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.20
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- id: ruff-format

- repo: https://github.com/numpy/numpydoc
rev: v1.11.0
hooks:
Expand All @@ -45,9 +38,22 @@ repos:
- repo: https://github.com/stefmolin/docstringify
rev: 2.0.0
hooks:
- id: docstringify-check
- id: docstringify-edit
name: docstringify source code with numpydoc
args: [--overwrite, --style=numpydoc]
files: src/.*
- id: docstringify-edit
name: docstringify tests with stubs
args: [--overwrite, --style=stub]
files: tests/.*

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.20
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- id: ruff-format

- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.25.1
hooks:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ ini_options.xfail_strict = true
[tool.numpydoc_validation]
checks = [
"all", # report on all checks
"GL08", # use Docstringify to test for docstring presence instead
"ES01", # but don't require an extended summary
"EX01", # or examples
"SA01", # or a see also section
Expand Down
Loading