-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
51 lines (46 loc) · 1.12 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
# call tox e.g. tox -e py38 tests/calibration/test_calibration.py
[tox]
isolated_build = True
envlist = py38
[testenv]
; recreate = True
passenv = *
deps =
coverage
pytest
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-test.txt
commands =
python -m coverage run --rcfile={env:COV_RCFILE} --source={toxinidir}/carmodel_calibration -m pytest {posargs}
coverage report
setenv =
COV_RCFILE={toxinidir}/.coveragerc
COV_FILE={toxinidir}/.coverage
; SUMO_HOME=/usr/share/sumo
[pytest]
testpaths =
tests
[testenv:lint]
deps =
pylint
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-test.txt
setenv =
LINTINGITEMS = carmodel_calibration
commands =
python -m pylint --rcfile=.pylintrc --notes= {env:LINTINGITEMS} \
--output=.pylint
[testenv:lintc]
deps =
pylint
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-test.txt
setenv =
LINTINGITEMS = carmodel_calibration
commands =
python -m pylint --rcfile=.pylintrc --notes= {env:LINTINGITEMS} \
--output-format=colorized --output=.pylint
[gh-actions]
passenv = *
python =
3.8: py38