-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (34 loc) · 916 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
# 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 = py36, py37, py38, py39
isolated_build = True
[testenv]
deps =
check-manifest
readme-renderer
twine
flake8
coverage
imagedata
codecov
commands =
check-manifest
twine check dist/*
flake8 .
coverage run -m unittest discover
codecov
passenv = HTTP_PROXY HTTPS_PROXY NO_PROXY CI TRAVIS TRAVIS_* CODECOV_TOKEN
[testenv:docs]
commands =
sphinx-apidoc -o source/ ../src
sphinx-build -W -b html docs docs/_build/html
#sphinx-build -M html "." "_build"
[flake8]
exclude = .tox,*.egg,build,data
# select = E,W,F
select = E,F
max-line-length = 180
ignore = E126,E231,E226,E265,E402,E731,F401,F721,F821,F841