-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
53 lines (46 loc) · 847 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
42
43
44
45
46
47
48
49
50
51
52
53
[tox]
isolated_build = True
envlist = clean, check, docs, py310, py311, flake8, report
[travis]
python =
3.10: py310
3.11: py311
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
poetry
commands =
poetry install --no-root
pytest --basetemp={envtmpdir}
[testenv:flake8]
basepython = python
deps = flake8
commands = flake8 src tests
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:check]
deps =
black
isort
mypy
commands =
black --check src tests
isort --check-only src tests
mypy src
[testenv:docs]
description = "Build the documentation."
basepython = python
deps =
sphinx
sphinx-rtd-theme
commands =
sphinx-build -b html docs docs/build
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
coverage html