This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (39 loc) · 1.57 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
[tox]
envlist = {py27,py35,py36}-unit,py27-lint,docs,py27-wheel
toxworkdir={toxinidir}/build/tox
[testenv]
deps =
{py27,py35,py36}-unit: coverage
{py27,py35,py36}-lint: pylint
{py27,py36,py35}-{func,unit}: pytest
{py27,py36,py35}-{func,unit,lint}: attrs
{py27,py36,py35}-{func,unit}: singledispatch
{py27,py36,py35}-{func,unit}: incremental
{py27,py36,py35}-{func,unit}: six
setenv =
COVERAGE_FILE={envtmpdir}/coverage
TMPDIR={envtmpdir}
commands =
{py27,py35,py36}-unit: python -c 'import os, sys;os.path.isdir(sys.argv[1]) or os.makedirs(sys.argv[1]);print(sys.argv[1])' {envtmpdir}
## Disabling:
## -- A bunch of attempts to do static type analysis that break because of attrs
## -- Too few public methods, which is a way of undercounting attrs' auto methods
py27-lint: pylint --disable=locally-disabled --disable=not-an-iterable --disable=unsupported-delete-operation --disable=unsupported-assignment-operation --disable=no-member --disable=unsubscriptable-object --disable=unsupported-membership-test --disable=too-few-public-methods src/seashore
{py27,py35,py36}-unit: coverage run {envbindir}/pytest src/seashore
# Temporarily disabling coverage reporting.
# It works locally, but fails on travis :(
#{py27,py35,py36}-unit: 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
[coverage:run]
omit =
*/test_*
*/build/*
*/selftest.py