This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
71 lines (67 loc) · 2.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
66
67
68
69
70
71
# Copyright (c) Moshe Zadka
# See LICENSE for details.
[tox]
envlist = {py27,pypy,py35,py36}-{unit,func},py27-lint,docs,py27-wheel
toxworkdir = {toxinidir}/build/tox
[coverage:run]
omit =
build/*
*/tests/*
*/example/*
*/virtualenv/*
[testenv]
deps =
{py27,pypy,py35,py36}-unit: coverage
{py27,pypy,py35,py36}-lint: pylint
{py27,pypy,py35,py36}-lint: flake8
{py27,pypy,py35,py36}-lint: ebb-lint
{py27,pypy}-lint: typing
{py27,pypy,py36,py35}-{func,unit}: pytest
{py27,pypy,py36,py35}-{func,unit,lint}: attrs
{py27,pypy,py36,py35}-{func,unit}: venusian
{py27,pypy,py36,py35}-{func,unit}: incremental
{py27,pypy,py36,py35}-{func,unit}: six
setenv =
COVERAGE_FILE = {envtmpdir}/coverage
TMPDIR = {envtmpdir}
commands =
{py27,pypy,py36,py35}-unit: coverage run {envbindir}/pytest src/middlefield
{py27,pypy,py36,py35}-unit: coverage report --show-missing --fail-under=100
# Disabling warnings about:
# E0704 -- bare raise outside except (rare, when it's done I mean it)
# R0201 -- unused self in methods (methods can be used for polymorphism)
# R0903 -- too few public methods (attrs-based classes have implicit ones)
py27-lint: pylint --disable=not-an-iterable --disable=unsupported-assignment-operation --disable=no-member --disable unsupported-membership-test --disable=not-callable --disable=unsubscriptable-object --disable=E0704 --disable=R0903 --disable=R0201 src/middlefield
py27-lint: flake8 src/middlefield
[testenv:py27-wheel]
skip_install = True
deps =
attrs
incremental
pyrsistent
coverage
pytest
typing
caparg
elcaminoreal
gather
seashore
toolz
pex
setuptools==33.1.1
commands =
mkdir -p {envtmpdir}/dist
python setup.py bdist_wheel --universal --dist-dir {envtmpdir}/dist
python setup.py sdist --dist-dir {envtmpdir}/dist
sh -c "pip install --no-index {envtmpdir}/dist/*.whl"
coverage run {envbindir}/pytest src/middlefield
coverage report --show-missing --fail-under=100
[testenv:docs]
usedevelop = True
changedir = docs
deps =
sphinx
attrs
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
basepython = python2.7