Migrate the pre-commit config ...
... with `pre-commit migrate-config` to the new stage names
This commit is contained in:
parent
44eef9eafc
commit
ed34e05cc7
1 changed files with 6 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
default_stages: [commit] # only used if a hook does not specify stages
|
default_stages: [pre-commit] # only used if a hook does not specify stages
|
||||||
fail_fast: true
|
fail_fast: true
|
||||||
repos:
|
repos:
|
||||||
# Run the local formatting, linting, and testing tool chains.
|
# Run the local formatting, linting, and testing tool chains.
|
||||||
|
|
@ -8,19 +8,19 @@ repos:
|
||||||
name: Format the source files
|
name: Format the source files
|
||||||
entry: poetry run nox -s format --
|
entry: poetry run nox -s format --
|
||||||
language: system
|
language: system
|
||||||
stages: [commit]
|
stages: [pre-commit]
|
||||||
types: [python]
|
types: [python]
|
||||||
- id: local-lint
|
- id: local-lint
|
||||||
name: Lint the source files
|
name: Lint the source files
|
||||||
entry: poetry run nox -s lint --
|
entry: poetry run nox -s lint --
|
||||||
language: system
|
language: system
|
||||||
stages: [commit]
|
stages: [pre-commit]
|
||||||
types: [python]
|
types: [python]
|
||||||
- id: local-test-suite
|
- id: local-test-suite
|
||||||
name: Run the entire test suite
|
name: Run the entire test suite
|
||||||
entry: poetry run nox -s test-suite --
|
entry: poetry run nox -s test-suite --
|
||||||
language: system
|
language: system
|
||||||
stages: [merge-commit]
|
stages: [pre-merge-commit]
|
||||||
types: [text]
|
types: [text]
|
||||||
# Enable hooks provided by the pre-commit project to
|
# Enable hooks provided by the pre-commit project to
|
||||||
# enforce rules that local tools could not that easily.
|
# enforce rules that local tools could not that easily.
|
||||||
|
|
@ -35,10 +35,10 @@ repos:
|
||||||
- id: check-toml
|
- id: check-toml
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
stages: [commit] # overwrite the default
|
stages: [pre-commit] # overwrite the default
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
args: [--fix=no]
|
args: [--fix=no]
|
||||||
- id: no-commit-to-branch
|
- id: no-commit-to-branch
|
||||||
args: [--branch, main]
|
args: [--branch, main]
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
stages: [commit] # overwrite the default
|
stages: [pre-commit] # overwrite the default
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue