-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
70 lines (64 loc) · 2.16 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-toml
- id: check-yaml
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-executables-have-shebangs
- id: check-added-large-files
args: ["--maxkb=5000"]
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8 # C90, E, F, W
additional_dependencies:
- darglint==1.8.1 # DAR
- flake8-annotations==2.7.0 # ANN
- flake8-bugbear==22.1.11 # B, B9
- flake8-cognitive-complexity==0.1.0 # CCR
- flake8-comprehensions==3.8.0 # C4
- flake8-docstrings==1.6.0 # D
- flake8-eradicate==1.2.0 # E800
- flake8-import-order==0.18.1 # I
- flake8-polyfill==1.0.2
- flake8-pytest-style==1.6.0 # PT
- pep8-naming==0.12.1 # N8
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.1.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies:
- "@commitlint/config-conventional"
#- repo: https://github.com/antonbabenko/pre-commit-terraform
# rev: v1.75.0
# hooks:
# - id: terraform_validate
# - id: terraform_docs
# args:
# - "--args=--config=terraform/.terraform.docs.yaml"
# - id: terraform_fmt
# - id: terraform_tflint
# args:
# - "--args=--enable-rule=terraform_comment_syntax"
# - "--args=--enable-rule=terraform_naming_convention"
# - "--args=--enable-rule=terraform_documented_outputs"
# - "--args=--enable-rule=terraform_documented_variables"
# - "--args=--enable-rule=terraform_typed_variables"
# - "--args=--enable-rule=terraform_unused_declarations"
# - "--args=--config=__GIT_WORKING_DIR__/terraform/.tflint.hcl"