Skip to content

Commit 882ce42

Browse files
committed
Rearange test to move mypy to the end
1 parent dfeb315 commit 882ce42

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

.pre-commit-config.yaml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,22 @@ repos:
3232
- id: mixed-line-ending
3333
args: [--fix=lf]
3434

35+
# Non-modifying checks:
36+
- id: name-tests-test
37+
files: >-
38+
^tests/[^_].*\.py$
39+
3540
# Security
3641
- id: detect-aws-credentials
3742
args:
3843
- --allow-missing-credentials
3944
- id: detect-private-key
4045

41-
# Non-modifying checks:
42-
- id: name-tests-test
43-
files: >-
44-
^tests/[^_].*\.py$
46+
# Detect hardcoded secrets
47+
- repo: https://github.com/gitleaks/gitleaks
48+
rev: v8.16.3
49+
hooks:
50+
- id: gitleaks
4551

4652
- repo: https://github.com/adrienverge/yamllint.git
4753
rev: v1.35.1
@@ -53,6 +59,14 @@ repos:
5359
args:
5460
- --strict
5561

62+
# JSON5 Linter
63+
- repo: https://github.com/pre-commit/mirrors-prettier
64+
rev: v3.1.0
65+
hooks:
66+
- id: prettier
67+
# https://prettier.io/docs/en/options.html#parser
68+
files: .json5$
69+
5670
- repo: https://github.com/pre-commit/mirrors-mypy.git
5771
rev: v1.14.1
5872
hooks:
@@ -135,15 +149,3 @@ repos:
135149
- --ignore=SC1091 # Useless check
136150
- --ignore=SC2015 # Useless check
137151
- --ignore=SC3037 # Not related to alpine
138-
139-
# JSON5 Linter
140-
- repo: https://github.com/pre-commit/mirrors-prettier
141-
rev: v3.1.0
142-
hooks:
143-
- id: prettier
144-
# https://prettier.io/docs/en/options.html#parser
145-
files: .json5$
146-
- repo: https://github.com/gitleaks/gitleaks
147-
rev: v8.16.3
148-
hooks:
149-
- id: gitleaks

0 commit comments

Comments
 (0)