jenkins-bot has submitted this change and it was merged.
Change subject: pep257 docstrings fixs for bot.py
......................................................................
pep257 docstrings fixs for bot.py
Also:
- added pywikibot/__init__.py to tox.ini.
- sorted pep257 compatible files in tox.ini 'white-list'.
Change-Id: I3acd4b6a944cbef9f50375332895abf0d10d3f92
---
M pywikibot/bot.py
M tox.ini
2 files changed, 25 insertions(+), 10 deletions(-)
Approvals:
XZise: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 941f4b0..bec306e 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -690,6 +690,7 @@
def showHelp(module_name=None):
+ """Show help for the Bot."""
if not module_name:
module_name = calledModuleName()
if not module_name:
@@ -844,6 +845,7 @@
@property
def current_page(self):
+ """Return the current working page as a
property."""
return self._current_page
@current_page.setter
diff --git a/tox.ini b/tox.ini
index 50daa29..ce3718d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -26,18 +26,31 @@
[testenv:flake8-docstrings-mandatory]
# Add any new file which is pep257 compatible
commands = flake8 --jobs=1 --ignore=D102,D103,E122,E127,E241,E265 \
- ./pywikibot/echo.py ./pywikibot/config2.py ./pywikibot/weblib.py \
- ./pywikibot/fixes.py ./pywikibot/editor.py ./pywikibot/comms/http.py \
+ ./pywikibot/__init__.py \
+ ./pywikibot/bot.py \
+ ./pywikibot/botirc.py \
+ ./pywikibot/config2.py \
+ ./pywikibot/echo.py \
+ ./pywikibot/editor.py \
+ ./pywikibot/family.py \
+ ./pywikibot/fixes.py \
+ ./pywikibot/interwiki_graph.py \
+ ./pywikibot/page.py \
+ ./pywikibot/plural.py \
+ ./pywikibot/tools.py \
+ ./pywikibot/version.py \
+ ./pywikibot/weblib.py \
+ ./pywikibot/comms/http.py \
+ ./pywikibot/compat/userlib.py \
+ ./pywikibot/compat/catlib.py \
+ ./pywikibot/compat/query.py \
+ ./pywikibot/data/__init__.py \
./pywikibot/userinterfaces/transliteration.py \
./pywikibot/userinterfaces/terminal_interface.py \
- ./pywikibot/page.py ./pywikibot/version.py ./pywikibot/plural.py \
- ./pywikibot/botirc.py ./pywikibot/interwiki_graph.py ./pywikibot/tools.py \
- ./pywikibot/bot.py ./pywikibot/family.py \
- ./pywikibot/data/__init__.py \
- ./pywikibot/compat/userlib.py ./pywikibot/compat/catlib.py \
- ./pywikibot/compat/query.py \
- ./scripts/claimit.py ./scripts/coordinate_import.py \
- ./scripts/harvest_template.py ./scripts/illustrate_wikidata.py \
+ ./scripts/claimit.py \
+ ./scripts/coordinate_import.py \
+ ./scripts/harvest_template.py \
+ ./scripts/illustrate_wikidata.py \
./scripts/newitem.py \
./tests/aspects.py
--
To view, visit
https://gerrit.wikimedia.org/r/163911
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3acd4b6a944cbef9f50375332895abf0d10d3f92
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <mpaa.wiki(a)gmail.com>
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: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>