Add hooks for the "test" and "doctest" sessions

This commit is contained in:
Alexander Hess 2026-11-27 14:52:05 +01:00
commit 83007d458c
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -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