From: Stephen Finucane Date: Tue, 1 Aug 2023 16:35:35 +0000 (+0100) Subject: tox: Use pre-commit for pep8 environment X-Git-Tag: v3.2.0~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd8320a83873a1649adb0d78f35190ec61182b17;p=thirdparty%2Fpatchwork.git tox: Use pre-commit for pep8 environment Avoid duplication. Signed-off-by: Stephen Finucane --- diff --git a/tox.ini b/tox.ini index 79e7bff1..f7c9eef2 100644 --- 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: