-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
66 lines (66 loc) · 1.92 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
57
58
59
60
61
62
63
64
65
66
default_language_version:
# force all unspecified python hooks to run python3
python: python3
exclude: ^build/|CNAME
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-vcs-permalinks
- id: check-yaml
exclude: ^(\.config/|lambda_code/takeover/)
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
hooks:
- id: pyupgrade
args: [--py36-plus]
exclude: .\.tf | ^\.github/
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
args: [--py36-plus]
exclude: .\.tf | ^\.github/
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.14.0
hooks:
- id: reorder-python-imports
args: [--py3-plus]
exclude: .\.tf | ^\.github/
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
args: [--line-length=120]
exclude: .\.tf | ^\.github/
- repo: https://github.com/pycqa/bandit
rev: 1.7.4
hooks:
- id: bandit
exclude: .\.tf | ^\.github/
- repo: https://github.com/pycqa/prospector
rev: v1.13.0
hooks:
- id: prospector
args:
- --zero-exit
exclude: .\.tf | ^\.github/
additional_dependencies: ["setuptools"]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.2
hooks:
- id: terraform_fmt
- id: terraform_checkov
args:
- --args=--config-file=__GIT_WORKING_DIR__/.config/sast_terraform_checkov_json.yml
exclude: .\.py | ^\.github/
- id: terraform_docs
args:
- "--args=--config=.terraform-docs.yml"
- "--args=--lockfile=false"