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:
parent
306b0a2bb8
commit
3ca3a00959
2
tox.ini
2
tox.ini
|
@ -33,10 +33,12 @@ deps =
|
||||||
types-PyYAML
|
types-PyYAML
|
||||||
flake8
|
flake8
|
||||||
mypy
|
mypy
|
||||||
|
ruff
|
||||||
setenv =
|
setenv =
|
||||||
# For instance: ./.tox/py3/tmp/
|
# For instance: ./.tox/py3/tmp/
|
||||||
TOXTEMPDIR={envtmpdir}
|
TOXTEMPDIR={envtmpdir}
|
||||||
commands =
|
commands =
|
||||||
python -m pytest --cov-report=html --cov=west {posargs:tests} --basetemp='{envtmpdir}/pytest with space/'
|
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 flake8 --config='{toxinidir}'/tox.ini '{toxinidir}'
|
||||||
|
python -m ruff check '{toxinidir}'
|
||||||
python -m mypy --config-file='{toxinidir}'/tox.ini --package=west
|
python -m mypy --config-file='{toxinidir}'/tox.ini --package=west
|
||||||
|
|
Loading…
Reference in New Issue