-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.pre-commit-config.yaml
38 lines (38 loc) · 1.13 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- name: General file size limit
id: check-added-large-files
args: ["--maxkb=200"]
# Allow specific files types to be larger with later test
exclude: |
(?x)(
\.html$|
\.ipynb$|
conda-lock\.yml$|
\.png$
)
- name: Large file size limit
id: check-added-large-files
args: ["--maxkb=10000"]
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: forbid-submodules
- id: check-case-conflict
- id: check-merge-conflict
- repo: https://github.com/gitleaks/gitleaks
rev: v8.20.1
hooks:
- id: gitleaks
- repo: local
hooks:
- id: forbid-environments
name: Check for included environments
entry: Environment directories for conda, virtualenv, or renv should not be included in commits
language: fail
files: "(conda-meta|pyvenv.cfg|renv/library)"
ci:
autofix_prs: false
autoupdate_schedule: quarterly