-
Notifications
You must be signed in to change notification settings - Fork 10
/
.pre-commit-config.yaml
84 lines (77 loc) · 2.4 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
repos:
- repo: local
hooks:
- id: autoflake
name: autoflake
stages: [commit]
language: system
entry: autoflake
args:
- '--in-place'
- '--remove-all-unused-imports'
- '--remove-unused-variables'
- "--ignore-init-module-imports"
types: [python]
- id: isort
name: isort
stages: [commit]
language: system
entry: isort
args:
- "--line-width"
- "88"
- "--multi-line"
- "3"
- "--trailing-comma"
- "--use-parentheses"
types: [python]
- id: black
name: black
stages: [commit]
language: system
entry: black
types: [python]
- id: pylint
name: pylint
stages: [commit]
language: system
entry: pylint
args: ["app", "--fail-under", "9.5", "--load-plugins", "pylint_django"]
types: [python]
- id: yamllint
name: yamllint
stages: [commit]
language: system
entry: bash -c "yamllint . -d relaxed --no-warnings"
types: [yaml]
- id: cfnlint
name: cfnlint
stages: [commit]
language: system
entry: bash -c "cfn-lint deployment/prod/cloudformation/**/*.yaml --ignore-checks W3002"
types: [yaml]
- repo: git://github.com/antonbabenko/pre-commit-terraform
rev: v1.46.0
hooks:
- id: terraform_fmt
# - id: terraform_validate
- id: terraform_docs
- id: terraform_tflint
args:
- '--args=--only=terraform_deprecated_interpolation'
- '--args=--only=terraform_deprecated_index'
- '--args=--only=terraform_unused_declarations'
- '--args=--only=terraform_comment_syntax'
- '--args=--only=terraform_documented_outputs'
- '--args=--only=terraform_documented_variables'
- '--args=--only=terraform_typed_variables'
- '--args=--only=terraform_module_pinned_source'
- '--args=--only=terraform_naming_convention'
- '--args=--only=terraform_required_version'
- '--args=--only=terraform_required_providers'
- '--args=--only=terraform_standard_module_structure'
- '--args=--only=terraform_workspace_remote'
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-merge-conflict