-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (43 loc) · 1.29 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (43 loc) · 1.29 KB
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
39
40
41
42
43
44
45
46
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
name: trim trailing whitespace
- id: end-of-file-fixer
name: fix end of files
- id: check-added-large-files
name: check for added large files
- id: check-merge-conflict
name: check for merge conflicts
- id: detect-private-key
name: detect private key
- id: mixed-line-ending
name: mixed line ending
args: ['--fix=lf']
- id: check-executables-have-shebangs
name: check executables have shebangs
- id: check-shebang-scripts-are-executable
name: check shebang scripts are executable
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
name: detect secrets
args: ['--baseline', '.secrets.baseline']
exclude: '^(\.env|xseed\.sh)$'
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
name: shellcheck
args: ['--severity=warning']
exclude: '^\.env'
- repo: local
hooks:
- id: bash-syntax
name: bash syntax check
entry: bash -n
language: system
types: [shell]
exclude: '^\.env'