-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
50 lines (44 loc) · 1 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
[tox]
envlist = lint,py{35,36,37,38,39,310,311},pypy3,manifest,coverage-report
[gh-actions]
python =
3.7: py37, coverage-report
3.8: py38, coverage-report
3.9: py39, coverage-report
3.10: py310, lint, manifest, coverage-report
3.11: py311, coverage-report
pypy-3.9: pypy3, coverage-report
[testenv]
deps =
pytest
coverage
sh
click
py{37,38,39,310,311,py3}: ipython
commands = coverage run --parallel -m pytest {posargs}
[testenv:lint]
skip_install = true
deps =
flake8
mypy
commands =
flake8 src tests
mypy --python-version=3.11 src tests
mypy --python-version=3.10 src tests
mypy --python-version=3.9 src tests
mypy --python-version=3.8 src tests
mypy --python-version=3.7 src tests
[testenv:manifest]
deps = check-manifest
skip_install = true
commands = check-manifest
[testenv:coverage-clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report