Run the local nox hooks serially
This commit is contained in:
parent
7c528d327e
commit
8a5a652b3e
1 changed files with 7 additions and 0 deletions
|
|
@ -19,12 +19,16 @@ repos:
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
|
|
||||||
|
# `require_serial: true`
|
||||||
|
# => Parallel runs would recreate the same `nox` environment
|
||||||
|
|
||||||
- id: local-format
|
- id: local-format
|
||||||
name: Format the source files
|
name: Format the source files
|
||||||
entry: uv run nox -s format --
|
entry: uv run nox -s format --
|
||||||
language: unsupported
|
language: unsupported
|
||||||
stages: [pre-commit]
|
stages: [pre-commit]
|
||||||
types: [python]
|
types: [python]
|
||||||
|
require_serial: true
|
||||||
|
|
||||||
- id: local-lint
|
- id: local-lint
|
||||||
name: Lint the source files
|
name: Lint the source files
|
||||||
|
|
@ -32,6 +36,7 @@ repos:
|
||||||
language: unsupported
|
language: unsupported
|
||||||
stages: [pre-commit]
|
stages: [pre-commit]
|
||||||
types: [python]
|
types: [python]
|
||||||
|
require_serial: true
|
||||||
|
|
||||||
- id: local-test
|
- id: local-test
|
||||||
name: Run the test suite
|
name: Run the test suite
|
||||||
|
|
@ -40,6 +45,7 @@ repos:
|
||||||
stages: [pre-merge-commit]
|
stages: [pre-merge-commit]
|
||||||
pass_filenames: false # => No `--` at the end of the "entry"
|
pass_filenames: false # => No `--` at the end of the "entry"
|
||||||
always_run: true
|
always_run: true
|
||||||
|
require_serial: true
|
||||||
|
|
||||||
- id: local-doctest
|
- id: local-doctest
|
||||||
name: Run the doctests
|
name: Run the doctests
|
||||||
|
|
@ -48,6 +54,7 @@ repos:
|
||||||
stages: [pre-merge-commit]
|
stages: [pre-merge-commit]
|
||||||
pass_filenames: false # => No `--` at the end of the "entry"
|
pass_filenames: false # => No `--` at the end of the "entry"
|
||||||
always_run: true
|
always_run: true
|
||||||
|
require_serial: true
|
||||||
|
|
||||||
# Keep requirements.txt in sync with uv.lock
|
# Keep requirements.txt in sync with uv.lock
|
||||||
- repo: https://github.com/astral-sh/uv-pre-commit
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue