tox: Use pre-commit for style checks

Change-Id: Ibe29f450c67c2297b659bd3c0b3b3b0d4d5e13a8
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane 2023-08-30 19:30:47 +01:00
parent 9f1ff00685
commit be8e6ba4fa
1 changed files with 4 additions and 3 deletions

View File

@ -23,11 +23,12 @@ commands =
stestr run {posargs}
[testenv:pep8]
description =
Run style checks.
deps =
hacking>=3.0.1,<3.1.0 # Apache-2.0
flake8-import-order>=0.17.1 # LGPLv3
pre-commit
commands =
flake8
pre-commit run --all-files --show-diff-on-failure
[testenv:venv]
commands =