diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ebdb288..2e780e5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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 @@ -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) @@ -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' @@ -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] diff --git a/pyproject.toml b/pyproject.toml index d205a1b..9adc4f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] @@ -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