forked from Textualize/rich
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (38 loc) · 813 Bytes
/
tox.ini
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
[tox]
minversion = 3.9.0
envlist =
lint
docs
py{36,37,38,39}
isolated_build = True
[testenv]
description = Run unit-testing
deps =
poetry
# 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 =
poetry install
pytest --cov-report term-missing --cov=rich tests/ {posargs}
[testenv:lint]
description = Runs all linting tasks
commands =
black .
mypy -p rich --config-file= --ignore-missing-imports --no-implicit-optional --warn-unreachable
skip_install = true
[testenv:docs]
description = Builds documentation
changedir = docs
deps =
-r docs/requirements.txt
commands =
sphinx-build -M html source build