blob: ae9f02a6111775465a82cc35aadedbd95573ff6c (
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
40
41
42
43
44
45
46
47
48
|
[tox]
envlist =
py27,
py35,
py36,
py37,
py38,
py39,
py310,
py311,
mypy
[testenv]
commands =
coverage run -m pytest
setenv =
COVERAGE_FILE=.coverage.{envname}
LC_ALL=en_US.UTF-8
deps =
.[test]
coverage
pytest
[testenv:coverage-clean]
deps = coverage
setenv =
COVERAGE_FILE=.coverage
skip_install = true
commands = coverage erase
[testenv:coverage-report]
deps = coverage
setenv =
COVERAGE_FILE=.coverage
skip_install = true
commands =
coverage combine
coverage report
coverage html
coverage
[testenv:mypy]
deps = mypy
skip_install = true
commands =
mypy -p magic
|