-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
60 lines (58 loc) · 1.61 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
exclude: "^bin/|^cloudformation/|^logging/"
# Hooks are sorted to go from some basic stuff
# to more and more complex tests.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-added-large-files
- id: check-symlinks
- id: debug-statements
- id: end-of-file-fixer
- id: requirements-txt-fixer
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.0
hooks:
- id: yamllint
- repo: https://github.com/aws-cloudformation/cfn-python-lint
rev: v0.45.0
hooks:
- id: cfn-python-lint
files: cloudformation/.*\.(json|yml|yaml)$
- repo: https://github.com/PrincetonUniversity/blocklint
rev: v0.2.3
hooks:
- id: blocklint
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.7.1
hooks:
- id: python-check-blanket-noqa
- id: python-use-type-annotations
- repo: https://github.com/asottile/pyupgrade
rev: v2.10.0
hooks:
- id: pyupgrade
- repo: https://github.com/timothycrosley/isort
rev: 5.8.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.0
hooks:
- id: flake8
additional_dependencies:
- "flake8-docstrings==1.5.0"
- "flake8-fixme==1.1.1"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
hooks:
- id: mypy
additional_dependencies: [mypy-boto3==1.16.0]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.7.1.1
hooks:
- id: shellcheck