forked from patnr/HistoryMatching
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
60 lines (57 loc) · 1.53 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: '^$|settings|scripts|docs'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
exclude: |
(?x)^(
.*README.md|
.*\.f90
)$
# 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 # Notifies if you DONT have credentials
args:
- --allow-missing-credentials
- id: detect-private-key # Notifies if you have private
- id: end-of-file-fixer
# - id: requirements-txt-fixer
# exclude: |
# (?x)^(
# requirements-.*\.txt
# )$
- id: mixed-line-ending
args: ['--fix=no']
- repo: https://github.com/flakeheaven/flakeheaven
rev: 3.0.0
hooks:
- id: flakeheaven
exclude: |
(?x)^(
.*\.ipynb
)$
additional_dependencies: [
flake8-docstrings,
flake8-bugbear,
flake8-comprehensions,
flake8-commas,
flake8-isort,
flake8-builtins,
pep8-naming,
]
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
exclude: |
(?x)^(
HistoryMatch\.py
)$