-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
51 lines (46 loc) · 1.25 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
39
40
41
42
43
44
45
46
47
48
49
50
51
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# General
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: check-case-conflict
- id: check-added-large-files
- id: check-json
- id: check-toml
- id: pretty-format-json
args:
- --autofix
- --indent=4
- --no-sort-keys
- id: detect-private-key
# Secrets
- repo: https://github.com/awslabs/git-secrets
rev: 5e28df337746db4f070c84f7069d365bfd0d72a8
hooks:
- id: git-secrets
entry: "git-secrets --scan"
files: "."
- repo: https://github.com/Yelp/detect-secrets
rev: v0.13.0
hooks:
- id: detect-secrets
args: ['--base64-limit', '5.5', '--hex-limit', '4']
exclude: .*/tests/.*|package.lock
# CloudFormation
- repo: https://github.com/aws-cloudformation/cfn-python-lint
rev: v0.27.1
hooks:
- id: cfn-python-lint
files: .template$
args: [--ignore-checks=W3002]
# Python
- repo: https://github.com/timothycrosley/isort
rev: 4.3.21-2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black