-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtox.ini
45 lines (39 loc) · 856 Bytes
/
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
[tox]
minversion = 3.8.0
envlist = python3.8, python3.9, flake8, mypy
isolated_build = true
[gh-actions]
python =
3.8: python3.8, flake8, mypy, pylint
3.9: python3.9, flake8, mypy, pylint
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
commands =
coverage erase
coverage run --branch -m pytest
coverage report
coverage xml -i -o coverage.xml
flake8 g2p_id tests
mypy g2p_id --ignore-missing-imports
pylint --rcfile=tox.ini g2p_id
[flake8]
extend-ignore = E203
max-line-length = 120
[pylint]
; R0902: Too many instance attribute
; R0903: Too few public methods
; R0914: Too many local variables
disable =
R0902,
R0903,
R0914
max-line-length = 120
[coverage:run]
source=g2p_id
[coverage:report]
exclude_lines =
except