-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
50 lines (43 loc) · 1005 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
46
47
48
49
50
[globals]
lint_files = seamm_widgets tests
[tox]
envlist = py35, py36, py37, flake8
[travis]
python =
3.7: py37
3.6: py36
3.5: py35
[testenv]
setenv =
PYTHONPATH = {toxinidir}
passenv = CI TRAVIS TRAVIS_*
deps =
-r{toxinidir}/requirements_dev.txt
commands =
pip install -U pip
py.test --basetemp={envtmpdir}
[testenv:lint]
deps =
flake8
yapf
; isort
commands =
; {envbindir}/isort --check-only --diff --recursive {[globals]lint_files}
{envbindir}/yapf --diff --recursive {[globals]lint_files}
{envbindir}/flake8 {[globals]lint_files}
[testenv:check]
deps =
mypy
commands =
{envbindir}/mypy -p seamm_widgets {posargs}
[testenv:coverage]
deps =
.
.[testing]
pytest-cov
commands =
coverage run --source seamm_widgets -m pytest
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following lines:
; deps =
; -r{toxinidir}/requirements.txt