forked from EmilStenstrom/conllu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
64 lines (56 loc) · 1.5 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
# 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 =
py36,py37,py38,py39
coverage,flake8,isort,mypy
[testenv]
whitelist_externals =
find
setenv =
PYTHONWARNINGS=once::DeprecationWarning
commands =
python runtests.py
[cleanup]
commands =
find {toxinidir}/conllu -type f -name "*.pyc" -delete
find {toxinidir}/conllu -type d -name "__pycache__" -delete
find {toxinidir} -type f -path "*.egg-info*" -delete
find {toxinidir} -type d -path "*.egg-info" -delete
[testenv:flake8]
# Note: Settings for flake8 exists in the setup.cfg file
changedir = {toxinidir}
deps = flake8
commands =
flake8 conllu tests
{[cleanup]commands}
[testenv:isort]
# Note: Settings for isort exists in the setup.cfg file
changedir = {toxinidir}
deps = isort
commands =
isort --check-only --diff conllu tests
{[cleanup]commands}
[testenv:coverage]
# Note: Settings for coverage exists in the setup.cfg file
changedir = {toxinidir}
deps = coverage
commands =
coverage run --branch runtests.py --blacklist integration
coverage report -m --fail-under=100
{[cleanup]commands}
[testenv:mypy]
# Note: Settings for coverage exists in the setup.cfg file
changedir = {toxinidir}
deps = mypy
commands =
mypy .
{[cleanup]commands}
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: coverage, flake8, isort, mypy