-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
38 lines (33 loc) · 952 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
# Tox (https://tox.readthedocs.io/) 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 = py{27,36,37,py,py3}, coverage-report
[testenv]
commands =
coverage run -m pytest {posargs}
deps =
pytest >= 2.10
pytest-env
coverage
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
[testenv:codecov]
passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*
deps = codecov
skip_install = true
commands =
coverage combine
coverage report
codecov
[testenv:lint]
deps =
-rrequirements/requirements-lint.txt
commands =
black --exclude=".pyi$" --check src tests
isort --diff --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --check-only src tests