forked from no10ds/rapid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
56 lines (56 loc) · 1.59 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
52
53
54
55
56
exclude: '^ui'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
exclude: '(tests|docs|test)/.*'
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
- repo: https://github.com/Yelp/detect-secrets
rev: v1.3.0
hooks:
- id: detect-secrets
exclude: docs/
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
args: ['--config', 'api/.flake8']
exclude: (docs/|get_latest_release_changelog.py)
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.83.2
hooks:
- id: terraform_fmt
exclude: '^(?!infrastructure/).*'
- id: terraform_validate
exclude: '^(?!infrastructure/).*'
- id: terraform_docs
args:
- markdown table --recursive --output-file README.md .
exclude: '^(?!infrastructure/).*'
- repo: https://github.com/bridgecrewio/checkov.git
rev: 2.3.261
hooks:
- id: checkov
args: [--quiet, --compact, --skip-check, 'CKV2_GHA_1']
exclude: '^(?!infrastructure/).*'
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
args: ['--config', 'ui/.prettierrc.json', './ui']