-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
65 lines (59 loc) · 1.23 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
[tox]
envlist = py36,lint,mypy
[tox:travis]
3.6 = py36, lint, mypy
[testenv]
install_command = pip install --index-url https://pypi.python.org/simple {opts} {packages}
usedevelop = True
commands =
rm -f .coverage
py.test -rxs --cov=revex -vv --durations=3 {posargs:revex}
basepython =
py36: python3.6
lint: python3.6
mypy: python3.6
deps =
networkx<2
parsimonious>=0.7.0
six
pygraphviz
coverage
pytest
pytest-cov
typing
numpy
ipython
jupyter
pdbpp
hypothesis
whitelist_externals =
rm
[testenv:lint]
deps =
flake8
flake8-debugger
flake8-print
commands =
flake8 revex
[testenv:mypy]
deps =
mypy==0.501
networkx
parsimonious>=0.7.0
six
pygraphviz
coverage
pytest
pytest-cov
ipython
pdbpp
hypothesis
env =
MYPYPATH=./tox/mypy/bin/python
commands =
mypy --py2 --show-traceback --ignore-missing-imports --follow-imports=skip --check-untyped-defs --strict-optional --warn-unused-ignores --warn-redundant-casts {posargs:revex/}
mypy --show-traceback --ignore-missing-imports --follow-imports=skip --check-untyped-defs --strict-optional {posargs:revex/}
[flake8]
ignore = E731,F811,E712,E127,E126,E226,E221,E401,E501
[pytest]
xfail_strict=true