forked from erikogan/prevent-submodule-regression
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
72 lines (72 loc) · 1.95 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
70
71
72
default_stages:
- commit
- merge-commit
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
# The ConfigParser write function writes files that violate this linter
exclude: setup.cfg
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: name-tests-test
args:
- --django
# - id: requirements-txt-fixer
- repo: https://github.com/asottile/pyupgrade
rev: v2.9.0
hooks:
- id: pyupgrade
args:
- --py36-plus
#### reorder_python_imports does a better job being compatible with black AND reducing merge-conflicts
# - repo: https://github.com/asottile/seed-isort-config
# rev: v2.1.1
# hooks:
# - id: seed-isort-config
# - repo: https://github.com/timothycrosley/isort
# rev: 4.3.21-2
# hooks:
# - id: isort
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.3.6
hooks:
- id: reorder-python-imports
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
language_version: python3.7
# This flake8 ignores the configuration file and --append-config is also not honored
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
args:
- --append-config=.flake8
- --ignore=E501
- repo: https://github.com/erikogan/reinstate-revert-revert
rev: v1.0.3
hooks:
- id: reinstate-revert-revert
stages:
- prepare-commit-msg
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.9
hooks:
- id: remove-crlf
exclude_types:
- diff
- pem
- id: remove-tabs
# This should ALWAYS be the defaut!
args: [ '--whitespaces-count', '8' ]
exclude_types:
- diff
exclude: "(\\.gitmodules|setup.cfg)"