forked from avantifellows/quiz-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
37 lines (36 loc) · 962 Bytes
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-yaml
exclude: "templates/*"
- id: check-merge-conflict
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
- id: black
exclude: ^psycopg2/
- repo: https://github.com/pycqa/flake8
rev: '6.1.0'
hooks:
- id: flake8
exclude: ^psycopg2/
args:
# these are errors that will be ignored by flake8
# check out their meaning here
# https://flake8.pycqa.org/en/latest/user/error-codes.html
- "--ignore=E501,E203,W503"
- repo: https://github.com/terraform-linters/tflint
rev: v0.30.0
hooks:
- id: tflint
files: \.tf$
- repo: https://github.com/aws-cloudformation/cfn-python-lint
rev: v0.58.4
hooks:
- id: cfn-python-lint
files: templates/.*\.(json|yml|yaml)$