From 83007d458c0af71cd624506b7957ed9220bfc4e4 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Fri, 27 Nov 2026 14:52:05 +0100 Subject: [PATCH] Add hooks for the "test" and "doctest" sessions --- .pre-commit-config.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8a477ed..5ba65a9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,12 +16,20 @@ repos: language: system stages: [pre-commit] types: [python] - - id: local-test-suite - name: Run the entire test suite - entry: poetry run nox -s test-suite -- + - id: local-test + name: Run the test suite + entry: uv run nox -s test language: system stages: [pre-merge-commit] - types: [text] + pass_filenames: false + always_run: true + - id: local-doctest + name: Run the doctests + entry: uv run nox -s doctest + language: system + stages: [pre-merge-commit] + pass_filenames: false + always_run: true # Enable hooks provided by the pre-commit project to # enforce rules that local tools could not that easily. - repo: https://github.com/pre-commit/pre-commit-hooks