-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
109 lines (108 loc) · 2.89 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
ci:
skip:
- terraform-fmt
- terraform-validate
- hadolint-docker
- infra-visualize
- localstack-services-visualize
- diagrams-visualize
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-json
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/hhatto/autopep8
rev: v2.3.1
hooks:
- id: autopep8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- id: python-check-mock-methods
- id: python-no-eval
- id: python-no-log-warn
- id: python-use-type-annotations
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
- repo: https://github.com/asottile/yesqa
rev: v1.5.0
hooks:
- id: yesqa
- repo: https://github.com/asottile/dead
rev: v1.5.2
hooks:
- id: dead
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
args: ["--max-line-length", "88", "--extend-ignore", "E203,E501"]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.10
hooks:
- id: bandit
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
args: ["--convention", "pep257", "--add-ignore", "D100,D104,D107"]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.23
hooks:
- id: terraform-fmt
- id: terraform-validate
- repo: https://github.com/hadolint/hadolint
rev: v2.13.1-beta
hooks:
- id: hadolint-docker
- repo: local
hooks:
- id: infra-visualize
name: Visualize infra
language: system
entry: task -t infra/Taskfile.yml visualize
files: ^infra/.*.tf$
pass_filenames: false
- id: localstack-services-visualize
name: Visualize localstack-services
language: system
entry: task -t infra/Taskfile.yml visualize:localstack-services
files: ^infra/localstack-services.*.tf$
pass_filenames: false
- id: diagrams-visualize
name: Visualize diagrams
language: system
entry: task -t diagrams/Taskfile.yml
pass_filenames: false
files: ^diagrams/.*.py$