-
Notifications
You must be signed in to change notification settings - Fork 47
/
.pre-commit-config.yaml
37 lines (36 loc) · 1.1 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
repos:
- repo: https://github.com/PyCQA/flake8
rev: '5.0.4' # pick a git hash / tag to point to
hooks:
- id: flake8
args: ["--max-line-length=213", "--extend-ignore=E203", "--max-complexity=10"]
exclude: "^(.*/migrations/|testproject/testproject/settings/)"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
exclude: |
(?x)^(
.tx/|
test-project/testapp/static/testapp/js/.*
test-project/testapp/static/testapp/css/.*
)$
- id: check-added-large-files
- id: debug-statements
- id: end-of-file-fixer
exclude: |
(?x)^(
.tx/|
test-project/testapp/static/testapp/js/.*
test-project/testapp/static/testapp/css/.*
.*\.map
)$
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
hooks:
- id: reorder-python-imports