forked from harrystech/arthur-redshift-etl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
69 lines (67 loc) · 1.94 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
exclude: "^cloudformation/|^docs/|^log_processing/kibana/|^wiki/"
# Hooks are sorted to go from basic, file stuff
# to more and more complex tests.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.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.3
hooks:
- id: yamllint
- repo: https://github.com/aws-cloudformation/cfn-python-lint
rev: v0.54.2
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.9.0
hooks:
- id: python-check-blanket-noqa
- id: python-use-type-annotations
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
hooks:
- id: pyupgrade
- repo: https://github.com/timothycrosley/isort
rev: 5.11.5
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies:
- "flake8-bugbear==22.9.23"
- "flake8-comprehensions==3.10.0"
- "flake8-docstrings==1.6.0"
- "flake8-fixme==1.1.1"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.971
hooks:
- id: mypy
additional_dependencies:
- "mypy-boto3~=1.24"
- "mypy-extensions==1.0.0"
- "types-PyYAML==6.0.12.6"
- "types-setuptools==67.2.0.1"
- "types-simplejson==3.18.0.0"
- "types-tabulate==0.9.0.0"
- "types-termcolor==1.1.6"
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.7.2.1
hooks:
- id: shellcheck