From 77dbeabe2e87e52d9d9a639ff4f0a8c92403dff3 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 1 Aug 2023 17:35:35 +0100 Subject: [PATCH] tox: Use pre-commit for pep8 environment Avoid duplication. Signed-off-by: Stephen Finucane (cherry picked from commit dd8320a83873a1649adb0d78f35190ec61182b17) --- tox.ini | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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: -- 2.47.3