'ruff check --fix' and 'ruff format' Change-Id: Iaf8771c00ade50cac196a0c8e898370cf5e3c052 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
41 lines
587 B
INI
41 lines
587 B
INI
[tox]
|
|
minversion = 4.6.0
|
|
envlist = pep8,validate,docs
|
|
skip_install = true
|
|
|
|
[testenv]
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
[testenv:validate]
|
|
deps =
|
|
jsonschema
|
|
commands =
|
|
python transform.py -n
|
|
|
|
[testenv:publish]
|
|
commands =
|
|
python transform.py
|
|
python publish.py
|
|
|
|
[testenv:pep8]
|
|
deps =
|
|
ruff
|
|
hacking
|
|
commands =
|
|
ruff check
|
|
flake8
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
|
|
|
|
[testenv:venv]
|
|
commands =
|
|
{posargs}
|
|
|
|
[flake8]
|
|
show-source = true
|
|
builtins = _
|
|
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|