blob: 388c35a35596ba90749422e6d725b3b52078cc3f (
plain)
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
|
[tox]
envlist =
py37,
py38,
py39,
py310,
pypy3,
docs,
lint,
venv,
skip_missing_interpreters = true
[gh-actions]
python =
pypy-3.7: pypy3
[testenv]
description = run tests with {basepython}
deps = -r{toxinidir}/test-requirements.txt
skip_install = True
commands =
python -m pytest {posargs}
[testenv:lint]
description = lint source code
deps = -r{toxinidir}/lint-requirements.txt
commands =
python setup.py check --metadata --restructuredtext --strict
flake8
black --check .
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
deps = -r{toxinidir}/docs-requirements.txt
commands =
sphinx-build -b html docs/ docs/_build/html
[testenv:venv]
commands = {posargs}
|