Skip to content

Commit 6b6902d

Browse files
committed
Add flake8 and bump pre-commit versions
1 parent 3290cc9 commit 6b6902d

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v1.4.0
3+
rev: v2.0.0
44
hooks:
55
- id: check-added-large-files
66
exclude: partsapp\/static\/highcharts\/highcharts\.src\.js$
@@ -10,9 +10,10 @@ repos:
1010
- id: end-of-file-fixer
1111
- id: trailing-whitespace
1212
- id: requirements-txt-fixer
13+
- id: flake8
1314
exclude: migrations\/[^/]*\.py$|settings\/[^/]*\.py|highcharts\/$|docs\/conf\.py
1415
- repo: https://github.com/Lucas-C/pre-commit-hooks
15-
rev: v1.1.5
16+
rev: v1.1.6
1617
hooks:
1718
- id: forbid-crlf
1819
exclude: \.csv$|\.png$|\.bat$
@@ -24,14 +25,11 @@ repos:
2425
- id: python-import-sorter
2526
exclude: migrations\/[^/]*\.py$|docs\/conf\.py
2627
- repo: https://github.com/prettier/prettier
27-
rev: 1.14.0
28+
rev: 1.14.2
2829
hooks:
2930
- id: prettier
30-
types: [file]
31-
files: \.(css|less|scss|ts|tsx|graphql|gql|json|js|jsx)$
32-
exclude: \.min\.(js|css)$|^parts/apps/partsapp/static/highcharts
3331
- repo: https://github.com/ambv/black
34-
rev: stable
32+
rev: 18.9b0
3533
hooks:
3634
- id: black
3735
language_version: python3.7

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ addopts=--reuse-db
2424
testpaths=django_pgtree
2525
python_files=*_tests.py tests.py
2626
python_paths=testproject/
27+
28+
[flake8]
29+
max_line_length = 88

0 commit comments

Comments
 (0)