From c3931b7149d4f353344b9a432233402488e283ab Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Mon, 29 Dec 2025 18:35:21 +0100 Subject: [PATCH 1/3] Update pre-commit hooks --- .pre-commit-config.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9730e63..fc818b4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,11 +8,13 @@ repos: - id: check-merge-conflict - id: check-vcs-permalinks - id: check-yaml + - id: debug-statements - id: end-of-file-fixer - id: fix-byte-order-marker - id: mixed-line-ending - id: no-commit-to-branch args: [--branch, main] + - id: trailing-whitespace - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.10.0 hooks: @@ -25,7 +27,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.14.10 hooks: - - id: ruff + - id: ruff-check - id: ruff-format - repo: https://github.com/kynan/nbstripout rev: 0.8.2 @@ -52,10 +54,10 @@ repos: ] args: [--wrap, "88"] files: (README\.md) -- repo: https://github.com/codespell-project/codespell - rev: v2.4.1 - hooks: - - id: codespell +- repo: https://github.com/crate-ci/typos + rev: v1.40.1 + hooks: + - id: typos - repo: meta hooks: - id: check-hooks-apply From c00b6c881c95f8b35c7f599166d5e8f4eb23517d Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Mon, 29 Dec 2025 18:49:46 +0100 Subject: [PATCH 2/3] Document pre-commit hook update --- docs/source/changes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/source/changes.md b/docs/source/changes.md index e2ab1c8..0757361 100644 --- a/docs/source/changes.md +++ b/docs/source/changes.md @@ -5,6 +5,10 @@ chronological order. Releases follow [semantic versioning](https://semver.org/) releases are available on [PyPI](https://pypi.org/project/pytask-parallel) and [Anaconda.org](https://anaconda.org/conda-forge/pytask-parallel). +## Unreleased + +- {pull}`131` updates pre-commit hooks. + ## 0.5.1 - 2025-03-09 - {pull}`114` drops support for Python 3.8 and adds support for Python 3.13. From dedeab6c89ba4ea70a0f9bd5c3837de243dc83cc Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Mon, 29 Dec 2025 19:04:17 +0100 Subject: [PATCH 3/3] Exclude wrappers from debug-statement check --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fc818b4..17908d9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,6 +9,7 @@ repos: - id: check-vcs-permalinks - id: check-yaml - id: debug-statements + exclude: ^src/pytask_parallel/wrappers.py$ - id: end-of-file-fixer - id: fix-byte-order-marker - id: mixed-line-ending