]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tox: Use pre-commit for pep8 environment
authorStephen Finucane <stephen@that.guru>
Tue, 1 Aug 2023 16:35:35 +0000 (17:35 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 1 Aug 2023 16:35:35 +0000 (17:35 +0100)
Avoid duplication.

Signed-off-by: Stephen Finucane <stephen@that.guru>
tox.ini

diff --git a/tox.ini b/tox.ini
index 79e7bff1e64022094c26fd9e0b706847048f7ed9..f7c9eef266c4ddb89bb128c4ef10925e00dc6870 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -48,11 +48,9 @@ commands =
 
 [testenv:pep8]
 deps =
-    black
-    flake8
+    pre-commit
 commands =
-    black --check --quiet {posargs:patchwork manage.py}
-    flake8 {posargs:patchwork manage.py}
+    pre-commit run --all-files --show-diff-on-failure
 
 [flake8]
 # Some rules are ignored as their use makes the code more difficult to read: