-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
38 lines (38 loc) · 1.19 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: v4.4.0
hooks:
- id: detect-private-key
exclude: |
(?x)(
^config/metrics.example.yml|
^config/servers.example.yml$
)
- id: check-added-large-files
- id: check-yaml
args: [--unsafe]
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-executables-have-shebangs
- repo: local
hooks:
- id: file-does-not-exist-check
name: Check if files do not exist
language: script
entry: .pre-commit-hooks/file-does-not-exist-check
files: ^users.csv$
- id: file-does-not-exist-check
name: Check if files do not exist
language: script
entry: .pre-commit-hooks/file-does-not-exist-check
files: ^id_rsa$
- id: file-does-not-exist-check
name: Check if files do not exist
language: script
entry: .pre-commit-hooks/file-does-not-exist-check
files: ^id_rsa.pub$
- id: file-is-empty-check
name: Check if files are empty
language: script
entry: .pre-commit-hooks/file-is-empty-check
files: ^vault.txt$