Skip to content

Commit d30e19a

Browse files
authored
Merge pull request #63 from ulgens/fix-precommit-flake8
Fix pre-commit & flake8 setup
2 parents 145fc64 + e331934 commit d30e19a

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
max-line-length = 88

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ repos:
44
hooks:
55
- id: pyupgrade
66
args: ["--py310-plus"]
7+
8+
- repo: https://github.com/pycqa/flake8
9+
rev: 7.3.0
10+
hooks:
11+
- id: flake8

requirements-test.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ pytest
44
coverage<8
55
pytest-django
66
pytest-cov
7-
pytest-flake8

tox.ini

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
dj{42,50},flake8
3+
dj{42,50}
44

55
[gh-actions]
66
django =
@@ -18,11 +18,3 @@ deps =
1818
dj42: django>=4.2,<4.3
1919
dj50: django>=5.0,<5.1
2020
commands = pytest -rxs --cov-report= --cov-append --cov djclick {posargs:djclick}
21-
22-
23-
[testenv:flake8]
24-
commands = flake8 djclick
25-
26-
27-
[flake8]
28-
max-line-length = 88

0 commit comments

Comments
 (0)