From 22092d7ce993a03b21de3e7934a42bf87182b6a6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 17:58:55 +0000 Subject: [PATCH 1/3] chore: update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.13.2 → v0.14.13](https://github.com/astral-sh/ruff-pre-commit/compare/v0.13.2...v0.14.13) - [github.com/pycqa/isort: 6.0.1 → 7.0.0](https://github.com/pycqa/isort/compare/6.0.1...7.0.0) - [github.com/pre-commit/mirrors-mypy: v1.18.2 → v1.19.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.18.2...v1.19.1) - [github.com/scientific-python/cookie: 2025.05.02 → 2025.11.21](https://github.com/scientific-python/cookie/compare/2025.05.02...2025.11.21) - [github.com/numpy/numpydoc: v1.9.0 → v1.10.0](https://github.com/numpy/numpydoc/compare/v1.9.0...v1.10.0) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ebdb288..de59025 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.13.2" + rev: "v0.14.13" hooks: - id: ruff types: [file, python] @@ -56,7 +56,7 @@ repos: - repo: https://github.com/pycqa/isort - rev: '6.0.1' + rev: '7.0.0' hooks: - id: isort name: isort (cython) @@ -70,7 +70,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 +82,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] From 8bf3d7b581c6dd836ed8dda6b459533a24658207 Mon Sep 17 00:00:00 2001 From: Martin Yeo Date: Wed, 21 Jan 2026 14:19:34 +0000 Subject: [PATCH 2/3] Align pre-commit-config and pyproject with SciTools template. --- .pre-commit-config.yaml | 2 ++ pyproject.toml | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index de59025..e46f1ae 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 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 From 6d5257acf7a98e1dd485078454b97af6eec75205 Mon Sep 17 00:00:00 2001 From: Martin Yeo Date: Wed, 21 Jan 2026 14:21:34 +0000 Subject: [PATCH 3/3] Align pre-commit-config and pyproject with SciTools template. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e46f1ae..2e780e5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,7 +42,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: "v0.14.13" hooks: - - id: ruff + - id: ruff-check types: [file, python] args: [--fix, --show-fixes] - id: ruff-format