rich/tox.ini

42 lines
813 B
INI
Raw Permalink Normal View History

2020-10-06 14:53:37 +00:00
[tox]
minversion = 3.9.0
envlist =
lint
docs
py{36,37,38,39}
isolated_build = True
[testenv]
description = Run unit-testing
deps =
2021-04-24 10:49:13 +00:00
poetry
2020-10-06 14:53:37 +00:00
# do not put * in passenv as it may break builds due to reduced isolation
passenv =
CI
GITHUB_*
HOME
PYTEST_*
SSH_AUTH_SOCK
TERM
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONUNBUFFERED=1
commands =
2021-04-24 10:49:13 +00:00
poetry install
2020-10-06 14:53:37 +00:00
pytest --cov-report term-missing --cov=rich tests/ {posargs}
[testenv:lint]
description = Runs all linting tasks
commands =
black .
2021-04-23 02:59:25 +00:00
mypy -p rich --config-file= --ignore-missing-imports --no-implicit-optional --warn-unreachable
2020-10-06 14:53:37 +00:00
skip_install = true
[testenv:docs]
description = Builds documentation
changedir = docs
deps =
-r docs/requirements.txt
commands =
sphinx-build -M html source build