From 8a5a652b3e499caad84d00369c9c51ff3271bab8 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Sat, 28 Nov 2026 01:58:44 +0100 Subject: [PATCH] Run the local `nox` hooks serially --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a86b539..12a17a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,12 +19,16 @@ repos: - repo: local hooks: + # `require_serial: true` + # => Parallel runs would recreate the same `nox` environment + - id: local-format name: Format the source files entry: uv run nox -s format -- language: unsupported stages: [pre-commit] types: [python] + require_serial: true - id: local-lint name: Lint the source files @@ -32,6 +36,7 @@ repos: language: unsupported stages: [pre-commit] types: [python] + require_serial: true - id: local-test name: Run the test suite @@ -40,6 +45,7 @@ repos: stages: [pre-merge-commit] pass_filenames: false # => No `--` at the end of the "entry" always_run: true + require_serial: true - id: local-doctest name: Run the doctests @@ -48,6 +54,7 @@ repos: stages: [pre-merge-commit] pass_filenames: false # => No `--` at the end of the "entry" always_run: true + require_serial: true # Keep requirements.txt in sync with uv.lock - repo: https://github.com/astral-sh/uv-pre-commit