project: Add ruff check to tox

Run ruff check as part of tox.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-11-02 20:49:20 +01:00 committed by Pieter De Gendt
parent 306b0a2bb8
commit 3ca3a00959
1 changed files with 2 additions and 0 deletions

View File

@ -33,10 +33,12 @@ deps =
types-PyYAML
flake8
mypy
ruff
setenv =
# For instance: ./.tox/py3/tmp/
TOXTEMPDIR={envtmpdir}
commands =
python -m pytest --cov-report=html --cov=west {posargs:tests} --basetemp='{envtmpdir}/pytest with space/'
python -m flake8 --config='{toxinidir}'/tox.ini '{toxinidir}'
python -m ruff check '{toxinidir}'
python -m mypy --config-file='{toxinidir}'/tox.ini --package=west