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.1.3~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77dbeabe2e87e52d9d9a639ff4f0a8c92403dff3;p=thirdparty%2Fpatchwork.git tox: Use pre-commit for pep8 environment Avoid duplication. Signed-off-by: Stephen Finucane (cherry picked from commit dd8320a83873a1649adb0d78f35190ec61182b17) --- diff --git a/tox.ini b/tox.ini index 0ab0ab84..4873866e 100644 --- a/tox.ini +++ b/tox.ini @@ -37,11 +37,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: