Skip to content

Commit 77dbeab

Browse files
committed
tox: Use pre-commit for pep8 environment
Avoid duplication. Signed-off-by: Stephen Finucane <[email protected]> (cherry picked from commit dd8320a)
1 parent b867fa2 commit 77dbeab

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tox.ini

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@ commands =
3737

3838
[testenv:pep8]
3939
deps =
40-
black
41-
flake8
40+
pre-commit
4241
commands =
43-
black --check --quiet {posargs:patchwork manage.py}
44-
flake8 {posargs:patchwork manage.py}
42+
pre-commit run --all-files --show-diff-on-failure
4543

4644
[flake8]
4745
# Some rules are ignored as their use makes the code more difficult to read:

0 commit comments

Comments
 (0)