forked from PyCQA/pydocstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
69 lines (57 loc) · 1.78 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
# Tox (http://tox.testrun.org/) 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 = {py34,py35,py36,py37}-{tests,install},py36-docs
[testenv]
# Make sure reading the UTF-8 from test.py works regardless of the locale used.
setenv =
LANG=C
LC_ALL=C
# To pass arguments to py.test, use `tox [options] -- [pytest posargs]`.
commands =
py.test --pep8 --cache-clear -vv src/tests {posargs}
mypy --config-file=tox.ini src/
deps =
-rrequirements/runtime.txt
-rrequirements/tests.txt
[testenv:py37-install]
skip_install = True
commands =
python setup.py bdist_wheel
pip install --no-index --find-links=dist pydocstyle
pydocstyle --help
# There's no way to generate sub-sections in tox.
# The following sections are all references to the `py37-install`.
[testenv:py34-install]
skip_install = {[testenv:py37-install]skip_install}
commands = {[testenv:py37-install]commands}
[testenv:py35-install]
skip_install = {[testenv:py37-install]skip_install}
commands = {[testenv:py37-install]commands}
[testenv:py36-install]
skip_install = {[testenv:py37-install]skip_install}
commands = {[testenv:py37-install]commands}
[testenv:pypy-install]
skip_install = {[testenv:py37-install]skip_install}
commands = {[testenv:py37-install]commands}
[testenv:py36-docs]
changedir=docs
deps =
-rrequirements/runtime.txt
-rrequirements/docs.txt
commands=sphinx-build -b html . _build
[pytest]
pep8ignore =
test.py E701 E704
norecursedirs = docs .tox
addopts = -rw
[pep257]
inherit = false
convention = pep257
add-select = D404
[mypy]
ignore_missing_imports = true
strict_optional = true
disallow_incomplete_defs = true