-
Notifications
You must be signed in to change notification settings - Fork 26
/
tox.ini
45 lines (40 loc) · 1.09 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
[tox]
envlist = py35,py36,py37,docs,linters,packaging
skip_missing_interpreters = True
# NOTE: Don't use 'deps = .[<extra-requirements>]' tox option since we
# want Tox to install the package from sdist first
[testenv]
setenv =
TRAVIS = true
commands =
# install testing requirements
pip install .[test]
# run tests
py.test --verbose --cov=iCount
[testenv:docs]
commands =
# install documentation requirements
pip install .[docs]
# build documentation
sphinx-build -E -W docs/source/ build/sphinx/html
[testenv:linters]
# run all linters to see their output even if one of them fails
ignore_errors = True
commands=
# install testing requirements
pip install .[test]
# run pylint
pylint iCount
# check PEP 8
pycodestyle iCount
# check PEP 257
pydocstyle iCount
[testenv:packaging]
commands =
# install testing requirements
pip install .[test]
# confirm that items checked into git are in sdist
check-manifest
# verify package metadata and confirm the long_description will render
# correctly on PyPI
python setup.py check --metadata --restructuredtext --strict