forked from gridsingularity/gsy-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
60 lines (52 loc) · 1.24 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
[tox]
mintoxversion = 2.3
envlist = check_readme,flake8,covclean,py36,coverage
[testenv]
passenv = LANG TERM LANGUAGE LC_ALL LD_LIBRARY_PATH
deps =
pip-tools
coverage
commands =
pip-sync requirements/base.txt requirements/tests.txt
pip install -e .
coverage run -m py.test {posargs:tests}
[testenv:covclean]
basepython = python3.6
skip_install = true
deps = coverage
commands = coverage erase
[testenv:coverage]
basepython = python3.6
skip_install = true
deps = coverage
commands =
coverage combine
coverage report
[testenv:flake8]
basepython = python3.6
skip_install = true
deps =
-rrequirements/tests.txt
commands =
flake8
#isort --check-only --recursive --quiet --project d3a --line-width 99 src tests setup.py fabfile.py
[flake8]
max-line-length = 99
[testenv:check_readme]
skip_install = true
deps = readme_renderer
commands = python setup.py check --restructuredtext --strict
[testenv:travis]
basepython = python3.6
passenv = LANG TERM LANGUAGE LC_ALL LD_LIBRARY_PATH
deps =
pip-tools
coverage
commands =
python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
pip-sync requirements/base.txt requirements/tests.txt
pip install -e .
coverage run -p --omit=".tox/*" -m py.test tests
coverage combine
coverage report
flake8