forked from simonrw/ttvfast-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
22 lines (18 loc) · 783 Bytes
/
tox.ini
File metadata and controls
22 lines (18 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py27, py34, py35, py36, lint, mypy
[testenv]
commands = {posargs:py.test --cov {envsitepackagesdir}/ttvfast {toxinidir}/testing}
deps = -r{toxinidir}/requirements.txt
[testenv:mypy]
deps = mypy-lang==0.4.5
typed-ast==0.6.1
lxml==3.6.4
commands = mypy --disallow-untyped-defs --silent-imports --py2 --fast-parser -p ttvfast \
--html-report htmlmypy --disallow-untyped-calls
[testenv:lint]
deps = flake8==2.5.4
commands = flake8 --max-complexity 10 ttvfast {toxinidir}/testing --max-line-length=90