-
Notifications
You must be signed in to change notification settings - Fork 16
/
tox.ini
62 lines (52 loc) · 1.27 KB
/
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
54
55
56
57
58
59
60
61
62
[tox]
minversion = 3.7
envlist = py37, py38, lint, cov4, typing, pypi-description, manifest, help, docs
[testenv]
# Baseline test environment for both Py 3.7 and 3.8
setenv =
VIRTUALENV_NO_DOWNLOAD=1
extras = dev
commands =
pip install --upgrade pip
python -m pytest --cov=mutatest {posargs}
[testenv:help]
# Ensure no errors are raised from the help text display
install_command = pip install --no-compile {opts} {packages}
setenv =
PYTHONWARNINGS=d
commands = mutatest --help
[testenv:cov4]
# Test with coverage v4 specifically
commands =
pip install 'coverage<5.0'
pytest -m coverage
[testenv:lint]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --verbose
[testenv:typing]
skip_install = true
deps = mypy
# run with --strict locally
commands = mypy mutatest
[testenv:docs]
deps = docs
changedir = docs
commands = sphinx-build -W -b html . _build
[testenv:pypi-description]
skip_install = true
deps =
twine
wheel
pip >= 18.0.0
commands =
pip install --upgrade pip
pip wheel -w {envtmpdir}/build --no-deps .
twine check {envtmpdir}/build/*
[testenv:manifest]
deps = check-manifest
skip_install = true
commands = check-manifest
[mypy-mutatest.tests.*]
# No static type checks are done on tests
ignore_errors = True