-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtox.ini
38 lines (34 loc) · 838 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
[tox]
mintoxversion = 2.3
envlist = py38
[testenv]
passenv = LANG TERM LANGUAGE LC_ALL LD_LIBRARY_PATH GITHUB_ACCESS_TOKEN TARGET_BRANCH
deps =
pip-tools
coverage
commands =
pip-sync requirements/tests.txt
pip install -e .
coverage run -m py.test {posargs:tests}
[testenv:lint]
basepython = python3.8
skip_install = true
deps =
-r requirements/tests.txt
commands =
# black --check .
# isort --check-only --recursive --quiet --project d3a --line-width 99 src tests setup.py fabfile.py
flake8 .
[testenv:ci]
basepython = python3.8
skip_install = true
deps =
-r requirements/tests.txt
commands_pre =
python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
commands =
{[testenv:lint]commands}
coverage run -p -m pytest tests
coverage combine
coverage xml
coverage report