-
Notifications
You must be signed in to change notification settings - Fork 180
/
tox.ini
46 lines (40 loc) · 891 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
[tox]
envlist =
py37,
py38,
py39,
py310,
pypy3,
docs,
lint,
mypy,
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:mypy]
description = type check source code
deps = -r{toxinidir}/mypy-requirements.txt
commands =
python -m mypy -p pymemcache
[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}