Skip to content

Commit a04d3f1

Browse files
committed
ci: run most relevant pre-commit hooks first
Signed-off-by: Matej Focko <[email protected]>
1 parent d525fa3 commit a04d3f1

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

.pre-commit-config.yaml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,6 @@ repos:
99
- id: ruff
1010
args: [--fix, --exit-non-zero-on-fix]
1111
- id: ruff-format
12-
- repo: https://github.com/pre-commit/mirrors-prettier
13-
rev: v4.0.0-alpha.8
14-
hooks:
15-
- id: prettier
16-
exclude: tests_openshift/openshift_integration/test_data/
17-
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v4.6.0
19-
hooks:
20-
- id: check-added-large-files
21-
- id: check-ast
22-
- id: check-builtin-literals
23-
- id: check-docstring-first
24-
- id: check-executables-have-shebangs
25-
- id: check-merge-conflict
26-
- id: check-symlinks
27-
- id: check-yaml
28-
args: [--allow-multiple-documents]
29-
- id: detect-private-key
30-
exclude: tests/conftest.py
31-
- id: detect-aws-credentials
32-
args: [--allow-missing-credentials]
33-
- id: end-of-file-fixer
34-
- id: mixed-line-ending
35-
- id: trailing-whitespace
3612
- repo: https://github.com/pre-commit/mirrors-mypy
3713
rev: v1.11.2
3814
hooks:
@@ -59,6 +35,30 @@ repos:
5935
types-cachetools,
6036
]
6137
exclude: files/scripts/
38+
- repo: https://github.com/pre-commit/mirrors-prettier
39+
rev: v4.0.0-alpha.8
40+
hooks:
41+
- id: prettier
42+
exclude: tests_openshift/openshift_integration/test_data/
43+
- repo: https://github.com/pre-commit/pre-commit-hooks
44+
rev: v4.6.0
45+
hooks:
46+
- id: check-added-large-files
47+
- id: check-ast
48+
- id: check-builtin-literals
49+
- id: check-docstring-first
50+
- id: check-executables-have-shebangs
51+
- id: check-merge-conflict
52+
- id: check-symlinks
53+
- id: check-yaml
54+
args: [--allow-multiple-documents]
55+
- id: detect-private-key
56+
exclude: tests/conftest.py
57+
- id: detect-aws-credentials
58+
args: [--allow-missing-credentials]
59+
- id: end-of-file-fixer
60+
- id: mixed-line-ending
61+
- id: trailing-whitespace
6262
- repo: https://github.com/shellcheck-py/shellcheck-py
6363
rev: v0.10.0.1
6464
hooks:

0 commit comments

Comments
 (0)