-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (44 loc) · 1.21 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
# let flake8 deal with py => dont treat docstrings.
exclude_types: ['html', 'python']
- id: check-added-large-files
- id: check-ast
#- id: check-json
- id: check-merge-conflict
#- id: check-xml
#- id: check-yaml
- id: debug-statements
- id: detect-aws-credentials
args:
- --allow-missing-credentials
- id: detect-private-key
- id: end-of-file-fixer
exclude_types: ['html']
#- id: requirements-txt-fixer
- id: mixed-line-ending
args: ['--fix=no']
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
#- id: identity # for debugging pre-commits
- repo: https://github.com/flakeheaven/flakeheaven
rev: 3.3.0
hooks:
- id: flakeheaven
additional_dependencies: [
flake8-docstrings,
flake8-bugbear,
flake8-comprehensions,
flake8-isort,
flake8-builtins,
pep8-naming,
]
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort