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}
--
To view, visit
https://gerrit.wikimedia.org/r/139412
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If8b5788aee1e64db8accead39c3058057874932b
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Hashar <hashar(a)free.fr>
Gerrit-Reviewer: Hashar <hashar(a)free.fr>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Multichill <maarten(a)mdammers.nl>
Gerrit-Reviewer: jenkins-bot <>