1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
[tox]
envlist = py310,py311,py312,py313,pep8,mypy
minversion = 4.0
skipsdist = true
[testenv]
deps = -e .[oslo,test]
skip_install = true
set_env =
PYTHONUNBUFFERED=1
commands =
pytest {posargs:cotyledon/tests}
[testenv:pep8]
deps = ruff
doc8
pygments
commands =
ruff check .
ruff format --check .
doc8 doc/source
[testenv:format]
deps = ruff
commands =
ruff check --fix .
ruff format .
[testenv:mypy]
basepython = python3.10
deps = -e .[oslo,test]
mypy
commands = mypy {posargs}
[testenv:venv]
commands = {posargs}
[testenv:build]
deps = build
commands = python -m build
[testenv:docs]
deps = .[doc,oslo]
commands = sphinx-build -a -W -b html doc/source doc/build
[pytest]
addopts = --verbose --numprocesses=auto
norecursedirs = .tox
|