forked from opencobra/cobrapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
73 lines (65 loc) · 1.04 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
61
62
63
64
65
66
67
68
69
70
71
72
73
[tox]
envlist = pep8, isort, safety, py{27,35,36,37}
[travis]
os =
linux: pep8, isort, safety, py{27,35,36,37}
osx: py{27,35}
python =
2.7: py27, pep8, safety
3.5: py35, pep8, isort, safety
3.6: py36
3.7: py37
[testenv]
extras =
sbml
array
deps=
pytest
pytest-benchmark
pytest-cov
jsonschema
commands =
pytest --cov=cobra {posargs: --benchmark-skip}
[testenv:py37]
extras =
array
[testenv:pep8]
skip_install = True
deps =
pep8
commands =
pep8 --show-source {toxinidir}/cobra
[testenv:safety]
deps=
safety
commands=
safety check
[testenv:isort]
skip_install = True
deps=
isort
commands=
isort --check-only --diff --recursive {toxinidir}/cobra
[tool:isort]
skip = __init__.py
indent = 4
line_length = 80
multi_line_output = 4
lines_after_imports = 2
known_first_party = cobra
known_third_party =
depinfo
future
libsbml
numpy
optlang
pandas
pytest
ruamel.yaml
swiglpk
six
tabulate
[flake8]
max-line-length = 80
exclude =
__init__.py