Skip to content

Commit a706367

Browse files
authored
Use new pre-commit stage names (#1035)
1 parent b0acf64 commit a706367

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.pre-commit-config.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ repos:
99
types: [python]
1010
entry: scripts/run-in-env.sh ruff check --fix
1111
require_serial: true
12-
stages: [commit, push, manual]
12+
stages: [pre-commit, pre-push, manual]
1313
- id: ruff-format
1414
name: 🐶 Ruff Formatter
1515
language: system
1616
types: [python]
1717
entry: scripts/run-in-env.sh ruff format
1818
require_serial: true
19-
stages: [commit, push, manual]
19+
stages: [pre-commit, pre-push, manual]
2020
- id: check-ast
2121
name: 🐍 Check Python AST
2222
language: system
@@ -36,7 +36,7 @@ repos:
3636
language: system
3737
types: [text, executable]
3838
entry: scripts/run-in-env.sh check-executables-have-shebangs
39-
stages: [commit, push, manual]
39+
stages: [pre-commit, pre-push, manual]
4040
- id: check-json
4141
name: { Check JSON files
4242
language: system
@@ -72,7 +72,7 @@ repos:
7272
language: system
7373
types: [text]
7474
entry: scripts/run-in-env.sh end-of-file-fixer
75-
stages: [commit, push, manual]
75+
stages: [pre-commit, pre-push, manual]
7676
- id: no-commit-to-branch
7777
name: 🛑 Don't commit to main branch
7878
language: system
@@ -91,7 +91,7 @@ repos:
9191
language: system
9292
types: [text]
9393
entry: scripts/run-in-env.sh trailing-whitespace-fixer
94-
stages: [commit, push, manual]
94+
stages: [pre-commit, pre-push, manual]
9595
- id: mypy
9696
name: mypy
9797
entry: scripts/run-in-env.sh mypy

0 commit comments

Comments
 (0)