From 10b60286a041eb1857a5f7554d5fe482ff7bf2f9 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 7 Sep 2020 16:51:29 -0700 Subject: [PATCH] WIP: src/tox.ini (pydocstyle): New --- src/tox.ini | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/tox.ini b/src/tox.ini index 22947a7a7a7..3ad616b366c 100644 --- a/src/tox.ini +++ b/src/tox.ini @@ -21,7 +21,7 @@ ## in a virtual environment. ## [tox] -envlist = doctest, coverage, startuptime, pycodestyle, relint, codespell +envlist = doctest, coverage, startuptime, pycodestyle, relint, codespell, pydocstyle # When adding environments above, also update the delegations in SAGE_ROOT/tox.ini skipsdist = true @@ -109,3 +109,11 @@ commands = codespell \ --dictionary={toxinidir}/.codespell-dictionary.txt \ --ignore-words={toxinidir}/.codespell-ignore.txt \ {posargs:{toxinidir}/sage/} + +[testenv:pydocstyle] +description = + check Python docstring conventions +# http://www.pydocstyle.org/en/stable/ +deps = + pydocstyle +commands = pydocstyle {posargs:{toxinidir}/sage/}