Skip to content
Merged
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: 8 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

ci:
autofix_prs: false
autofix_commit_msg: "style: pre-commit fixes"
autoupdate_commit_msg: "chore: update pre-commit hooks"
autoupdate_schedule: "monthly"

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down Expand Up @@ -38,9 +40,9 @@ repos:


- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.13.2"
rev: "v0.14.13"
hooks:
- id: ruff
- id: ruff-check
types: [file, python]
args: [--fix, --show-fixes]
- id: ruff-format
Expand All @@ -56,7 +58,7 @@ repos:


- repo: https://github.com/pycqa/isort
rev: '6.0.1'
rev: '7.0.0'
hooks:
- id: isort
name: isort (cython)
Expand All @@ -70,7 +72,7 @@ repos:
types: [file, python]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.18.2'
rev: 'v1.19.1'
hooks:
- id: mypy
exclude: 'noxfile\.py|docs/conf\.py'
Expand All @@ -82,14 +84,14 @@ repos:
- id: validate-pyproject

- repo: https://github.com/scientific-python/cookie
rev: 2025.05.02
rev: 2025.11.21
hooks:
- id: sp-repo-review
additional_dependencies: ["repo-review[cli]"]
args: ["--show=errskip"]

- repo: https://github.com/numpy/numpydoc
rev: v1.9.0
rev: v1.10.0
hooks:
- id: numpydoc-validation
types: [file, python]
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ ignore = [
[tool.pytest.ini_options]
addopts = "-ra -v --doctest-modules"
testpaths = ["src/stratify"]
log_level = "INFO"

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

[tool.repo-review]
# These are a list of the currently failing tests to be fixed later:

ignore = [
# https://learn.scientific-python.org/development/guides/packaging-simple#PP006
"PP006", # Uses dev dependency group

# These are a list of the currently failing tests to be fixed later:
"PY004", # Has docs folder
"PP302", # Sets a minimum pytest to at least 6
"PP304", # Sets the log level in pytest
Expand Down
Loading