From dd8320a83873a1649adb0d78f35190ec61182b17 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 --- tox.ini | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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: -- 2.47.3