Merge pull request #4117 from stephenfin/the-great-toxification-1

The great toxification (part 1)
This commit is contained in:
Takeshi KOMIYA 2017-10-10 19:50:35 +09:00 committed by GitHub
commit d699fa66a6
2 changed files with 14 additions and 4 deletions

1
.gitignore vendored
View File

@ -12,6 +12,7 @@ TAGS
.tags .tags
.tox .tox
.venv .venv
.coverage
.DS_Store .DS_Store
sphinx/pycode/Grammar*pickle sphinx/pycode/Grammar*pickle
distribute-* distribute-*

17
tox.ini
View File

@ -6,15 +6,16 @@ passenv = https_proxy http_proxy no_proxy
deps= deps=
six six
pytest pytest
pytest-cov
html5lib html5lib
mock mock
enum34 enum34
typing typing
setenv = setenv =
SPHINX_TEST_TEMPDIR = {envdir}/testbuild SPHINX_TEST_TEMPDIR = {envdir}/testbuild
PYTHONDONTWRITEBYTECODE = true
commands= commands=
{envpython} -Wall tests/run.py --ignore tests/py35 {posargs} {envpython} -Wall tests/run.py --ignore tests/py35 --cov=sphinx \
--durations 25 {posargs}
sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
[testenv:pypy] [testenv:pypy]
@ -46,6 +47,13 @@ deps=
deps=flake8 deps=flake8
commands=flake8 commands=flake8
[testenv:pylint]
deps=
pylint
{[testenv]deps}
commands=
pylint --rcfile utils/pylintrc sphinx
[testenv:py27] [testenv:py27]
deps= deps=
{[testenv]deps} {[testenv]deps}
@ -56,10 +64,11 @@ deps=
typed_ast typed_ast
{[testenv]deps} {[testenv]deps}
commands= commands=
{envpython} -Wall tests/run.py {posargs} {envpython} -Wall tests/run.py --cov=sphinx --durations 25 {posargs}
sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
[testenv:mypy] [testenv:mypy]
basepython=python3
deps= deps=
mypy mypy
commands= commands=
@ -67,4 +76,4 @@ commands=
[testenv:docs] [testenv:docs]
commands= commands=
python setup.py build_sphinx python setup.py build_sphinx {posargs}