jenkins-bot has submitted this change and it was merged.
Change subject: Tox entry point to lint docstrings ......................................................................
Tox entry point to lint docstrings
pep257 define a standard for docstrings. The linter is available as a flake8 extension 'flake8-docstrings'.
Hack in the flake8 command to only include errors starting with D.
Usage:
tox -e flake8-docstrings
Change-Id: If8b5788aee1e64db8accead39c3058057874932b --- M tox.ini 1 file changed, 5 insertions(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved Multichill: Looks good to me, but someone else must approve jenkins-bot: Verified
Objections: Hashar: There's a problem with this change, please improve
diff --git a/tox.ini b/tox.ini index 5a6209e..5e8d79a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] minversion = 1.6 skipsdist = True -envlist = flake8,py26,py27 +envlist = flake8,flake8-docstrings,py26,py27
[testenv] setenv = VIRTUAL_ENV={envdir} @@ -13,6 +13,10 @@ commands = flake8 {posargs} deps = flake8
+[testenv:flake8-docstrings] +commands = flake8 --select=D {posargs} +deps = flake8-docstrings + [testenv:venv] commands = {posargs}