Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Fedir Zadniprovskyi
commited on
Commit
·
1cffcb2
1
Parent(s):
dd46659
add `detect-secrets` pre-commit hook
Browse files- .pre-commit-config.yaml +6 -1
.pre-commit-config.yaml
CHANGED
@@ -8,6 +8,7 @@ repos:
|
|
8 |
- id: end-of-file-fixer
|
9 |
- id: check-yaml
|
10 |
- id: check-added-large-files
|
|
|
11 |
- repo: https://github.com/python-jsonschema/check-jsonschema
|
12 |
rev: 0.30.0
|
13 |
hooks:
|
@@ -38,4 +39,8 @@ repos:
|
|
38 |
rev: 1.23.1
|
39 |
hooks:
|
40 |
- id: basedpyright
|
41 |
-
pass_filenames: false
|
|
|
|
|
|
|
|
|
|
8 |
- id: end-of-file-fixer
|
9 |
- id: check-yaml
|
10 |
- id: check-added-large-files
|
11 |
+
args: ['--maxkb=500'] # default: 500
|
12 |
- repo: https://github.com/python-jsonschema/check-jsonschema
|
13 |
rev: 0.30.0
|
14 |
hooks:
|
|
|
39 |
rev: 1.23.1
|
40 |
hooks:
|
41 |
- id: basedpyright
|
42 |
+
pass_filenames: false # TODO: document
|
43 |
+
- repo: https://github.com/Yelp/detect-secrets
|
44 |
+
rev: v1.5.0
|
45 |
+
hooks:
|
46 |
+
- id: detect-secrets
|