loguru/tox.ini

25 lines
546 B
INI

[tox]
envlist = lint, tests, docs
[testenv]
setenv = PYTHONPATH = {toxinidir}
extras = dev
[testenv:lint]
description = Run linting checks on all project files.
commands =
pre-commit run --show-diff-on-failure --all-files
[testenv:tests]
description = Run the tests and generate code coverage.
commands =
coverage erase
pytest -vv --cov loguru/ --cov-report=
coverage report -m
coverage xml
[testenv:docs]
description = Build the HTML documentation.
commands =
sphinx-build -a -b html -W --keep-going docs/ docs/build