forked from python-attrs/cattrs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (38 loc) · 849 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
[tox]
envlist = py27, pypy, py35, pypy3, py36, py37, lint
[testenv:lint]
skip_install = true
basepython = python3.6
extras = tests
deps =
flake8
black
commands =
flake8 src tests setup.py conftest.py docs/conf.py
black --check --verbose setup.py src tests docs/conf.py
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/cattr
extras = dev
commands =
pip install -U pip
coverage run --source cattr -m pytest
passenv = CI
[testenv:docs]
basepython = python3.6
setenv =
PYTHONHASHSEED = 0
deps =
sphinx
zope.interface
commands =
make docs
whitelist_externals = make
# Uses default basepython otherwise reporting doesn't work on Travis where
# Python 3.5 is only available in 3.5 jobs.
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report