-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathtox.ini
76 lines (69 loc) · 1.55 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist =
py38
py39
py310
py311
py312
coverage
flake8
isort
mypy
isolated_build = True
[gh-actions]
# Note: coverage runs the tests, so no need for py<version> on the last row
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: coverage, flake8, isort, mypy
fail_on_no_env = True
[testenv]
package = wheel
wheel_build_env = .pkg
deps = pytest
commands = python -m pytest {posargs}
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
coverage: python3.12
flake8: python3.12
isort: python3.12
mypy: python3.12
[testenv:flake8]
# Note: Settings for flake8 exists in the pyproject.toml file
changedir = {toxinidir}
deps =
flake8
flake8-pyproject
commands =
flake8 conllu tests
[testenv:isort]
# Note: Settings for isort exists in the pyproject.toml file
changedir = {toxinidir}
deps = isort
commands =
isort --check-only --diff conllu tests
[testenv:coverage]
# Note: Settings for coverage exists in the pyproject.toml file
changedir = {toxinidir}
deps = pytest-coverage
commands =
coverage run --branch -m pytest -m "not integration"
coverage report -m --fail-under=100
[testenv:mypy]
# Note: Settings for coverage exists in the pyproject.toml file
changedir = {toxinidir}
deps =
mypy
pytest
commands =
mypy .