Skip to content

Commit 0504a61

Browse files
committed
Update pre-commit config
1 parent a5074cd commit 0504a61

File tree

1 file changed

+29
-8
lines changed

1 file changed

+29
-8
lines changed

.pre-commit-config.yaml

+29-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,37 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: e19917ae62c365d4d746fa9639c7506435bcf1c8
2+
- repo: https://github.com/PyCQA/flake8
3+
rev: '5.0.4' # pick a git hash / tag to point to
44
hooks:
5-
- id: trailing-whitespace
65
- id: flake8
7-
args:
8-
- --exclude=*/*migrations/*, testproject/testproject/settings/*
6+
args: ["--max-line-length=213", "--extend-ignore=E203", "--max-complexity=10"]
7+
exclude: "^(.*/migrations/|testproject/testproject/settings/)"
8+
- repo: https://github.com/pre-commit/pre-commit-hooks
9+
rev: v4.3.0
10+
hooks:
11+
- id: trailing-whitespace
12+
exclude: |
13+
(?x)^(
14+
.tx/|
15+
test-project/testapp/static/testapp/js/.*
16+
test-project/testapp/static/testapp/css/.*
17+
)$
918
- id: check-added-large-files
1019
- id: debug-statements
1120
- id: end-of-file-fixer
12-
- repo: https://github.com/asottile/reorder_python_imports
13-
rev: v3.8.5
21+
exclude: |
22+
(?x)^(
23+
.tx/|
24+
test-project/testapp/static/testapp/js/.*
25+
test-project/testapp/static/testapp/css/.*
26+
.*\.map
27+
)$
28+
- repo: https://github.com/psf/black
29+
rev: 22.10.0
30+
hooks:
31+
- id: black
32+
language_version: python3
33+
34+
- repo: https://github.com/asottile/reorder_python_imports
35+
rev: v3.9.0
1436
hooks:
1537
- id: reorder-python-imports
16-
language_version: python3

0 commit comments

Comments
 (0)