mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #4337 from stephenfin/the-great-toxification
The great toxification (part 6)
This commit is contained in:
commit
626e8980cd
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,6 +13,7 @@ TAGS
|
|||||||
.tox
|
.tox
|
||||||
.venv
|
.venv
|
||||||
.coverage
|
.coverage
|
||||||
|
htmlcov
|
||||||
.DS_Store
|
.DS_Store
|
||||||
sphinx/pycode/Grammar*pickle
|
sphinx/pycode/Grammar*pickle
|
||||||
distribute-*
|
distribute-*
|
||||||
|
13
.travis.yml
13
.travis.yml
@ -14,13 +14,17 @@ matrix:
|
|||||||
- python: 'pypy'
|
- python: 'pypy'
|
||||||
env: TOXENV=pypy
|
env: TOXENV=pypy
|
||||||
- python: '2.7'
|
- python: '2.7'
|
||||||
env: TOXENV=du13
|
env:
|
||||||
|
- TOXENV=du13
|
||||||
|
- PYTEST_ADDOPTS = --cov sphinx --cov-append --cov-config setup.cfg
|
||||||
- python: '3.4'
|
- python: '3.4'
|
||||||
env: TOXENV=py34
|
env: TOXENV=py34
|
||||||
- python: '3.5'
|
- python: '3.5'
|
||||||
env: TOXENV=py35
|
env: TOXENV=py35
|
||||||
- python: '3.6'
|
- python: '3.6'
|
||||||
env: TOXENV=py36
|
env:
|
||||||
|
- TOXENV=py36
|
||||||
|
- PYTEST_ADDOPTS = --cov sphinx --cov-append --cov-config setup.cfg
|
||||||
- python: 'nightly'
|
- python: 'nightly'
|
||||||
env: TOXENV=py37
|
env: TOXENV=py37
|
||||||
- python: '3.6'
|
- python: '3.6'
|
||||||
@ -35,7 +39,10 @@ addons:
|
|||||||
- imagemagick
|
- imagemagick
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install -U tox
|
- pip install -U tox codecov
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- tox -- -v
|
- tox -- -v
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- codecov
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
:target: https://circleci.com/gh/sphinx-doc/sphinx
|
:target: https://circleci.com/gh/sphinx-doc/sphinx
|
||||||
:alt: Build Status (CircleCI)
|
:alt: Build Status (CircleCI)
|
||||||
|
|
||||||
|
.. image:: https://codecov.io/gh/sphinx-doc/sphinx/branch/master/graph/badge.svg
|
||||||
|
:target: https://codecov.io/gh/sphinx-doc/sphinx
|
||||||
|
:alt: Code Coverage Status (Codecov)
|
||||||
|
|
||||||
Sphinx is a tool that makes it easy to create intelligent and beautiful
|
Sphinx is a tool that makes it easy to create intelligent and beautiful
|
||||||
documentation for Python projects (or other documents consisting of multiple
|
documentation for Python projects (or other documents consisting of multiple
|
||||||
reStructuredText sources), written by Georg Brandl. It was originally created
|
reStructuredText sources), written by Georg Brandl. It was originally created
|
||||||
|
14
setup.cfg
14
setup.cfg
@ -43,3 +43,17 @@ follow_imports = skip
|
|||||||
incremental = True
|
incremental = True
|
||||||
check_untyped_defs = True
|
check_untyped_defs = True
|
||||||
warn_unused_ignores = True
|
warn_unused_ignores = True
|
||||||
|
|
||||||
|
[coverage:run]
|
||||||
|
branch = True
|
||||||
|
source = sphinx
|
||||||
|
|
||||||
|
[coverage:report]
|
||||||
|
exclude_lines =
|
||||||
|
# Have to re-enable the standard pragma
|
||||||
|
pragma: no cover
|
||||||
|
# Don't complain if tests don't hit defensive assertion code:
|
||||||
|
raise NotImplementedError
|
||||||
|
# Don't complain if non-runnable code isn't run:
|
||||||
|
if __name__ == .__main__.:
|
||||||
|
ignore_errors = True
|
||||||
|
11
tox.ini
11
tox.ini
@ -8,7 +8,6 @@ passenv =
|
|||||||
description =
|
description =
|
||||||
py{27,34,35,36,py}: Run unit tests against {envname}.
|
py{27,34,35,36,py}: Run unit tests against {envname}.
|
||||||
du{11,12,13,14}: Run unit tests with the given version of docutils.
|
du{11,12,13,14}: Run unit tests with the given version of docutils.
|
||||||
coverage: Run code coverage checks.
|
|
||||||
|
|
||||||
# TODO(stephenfin) Replace this with the 'extras' config option when tox 2.4 is
|
# TODO(stephenfin) Replace this with the 'extras' config option when tox 2.4 is
|
||||||
# widely available, likely some time after the Ubuntu 18.04 release
|
# widely available, likely some time after the Ubuntu 18.04 release
|
||||||
@ -22,7 +21,6 @@ deps =
|
|||||||
du14: docutils==0.14
|
du14: docutils==0.14
|
||||||
setenv =
|
setenv =
|
||||||
SPHINX_TEST_TEMPDIR = {envdir}/testbuild
|
SPHINX_TEST_TEMPDIR = {envdir}/testbuild
|
||||||
coverage: PYTEST_ADDOPTS = --cov sphinx
|
|
||||||
commands=
|
commands=
|
||||||
{envpython} -Wall tests/run.py --durations 25 {posargs}
|
{envpython} -Wall tests/run.py --durations 25 {posargs}
|
||||||
|
|
||||||
@ -41,6 +39,15 @@ deps =
|
|||||||
commands =
|
commands =
|
||||||
pylint --rcfile utils/pylintrc sphinx
|
pylint --rcfile utils/pylintrc sphinx
|
||||||
|
|
||||||
|
[testenv:coverage]
|
||||||
|
description =
|
||||||
|
Run code coverage checks.
|
||||||
|
setenv =
|
||||||
|
PYTEST_ADDOPTS = --cov sphinx --cov-config {toxinidir}/setup.cfg
|
||||||
|
commands =
|
||||||
|
{[testenv]commands}
|
||||||
|
coverage report
|
||||||
|
|
||||||
[testenv:mypy]
|
[testenv:mypy]
|
||||||
description =
|
description =
|
||||||
Run type checks.
|
Run type checks.
|
||||||
|
Loading…
Reference in New Issue
Block a user