jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/406020 )
Change subject: tox.ini: Set rstcheck report level to warning and check all rst files
......................................................................
tox.ini: Set rstcheck report level to warning and check all rst files
tox.ini:
- Add "--ignore-directives automodule,autoclass,autofunction" to
rstcheck options as they cause warnings.
- Run the rstcheck on all *.rst files. Previously it used to only look
under the ./docs directory; therefore other rst files were not checked.
- Ignore rst files under the ./.tox/* directory because it contains
installed third-party packages.
tests/README.rst:
- Fix "Unexpected indentation" error.
docs/library_usage.rst:
- Fix "Title underline too short" warning.
Change-Id: Ia48661bf8d772a2b9716e4c554b9b4bd3b239373
---
M docs/library_usage.rst
M tests/README.rst
M tox.ini
3 files changed, 6 insertions(+), 4 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/docs/library_usage.rst b/docs/library_usage.rst
index 232143d..36ef39a 100644
--- a/docs/library_usage.rst
+++ b/docs/library_usage.rst
@@ -1,5 +1,5 @@
Using pywikibot as library
-------------
+--------------------------
.. note::
Please see the documentation at `Manual:Pywikibot/Create your own script
<https://www.mediawiki.org/wiki/Manual:Pywikibot/Create_your_own_script>`_
diff --git a/tests/README.rst b/tests/README.rst
index 1c7c868..1c3601f 100644
--- a/tests/README.rst
+++ b/tests/README.rst
@@ -189,8 +189,10 @@
3. create a project in
circleci.com
4. go to
https://circleci.com/gh/<username>/pywikibot-core/edit#env-vars
and add the following variables:
- PYWIKIBOT2_NO_USER_CONFIG=2
- TOXENV=py27,py34
+
+ - PYWIKIBOT2_NO_USER_CONFIG=2
+ - TOXENV=py27,py34
+
5. push changes into the forked git repository
6. watch the build at
https://circleci.com/gh/<username>/pywikibot-core
diff --git a/tox.ini b/tox.ini
index 5435357..bc62e18 100644
--- a/tox.ini
+++ b/tox.ini
@@ -133,7 +133,7 @@
[testenv:doc]
commands =
make html -C ./docs
- findx -name "*.rst" -x -path ./docs : rstcheck --report severe
+ findx -type f -name '*.rst' -not -path './.tox/*' : rstcheck --report
warning --ignore-directives automodule,autoclass,autofunction
basepython = python3.4
deps =
-rrequests-requirements.txt
--
To view, visit
https://gerrit.wikimedia.org/r/406020
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia48661bf8d772a2b9716e4c554b9b4bd3b239373
Gerrit-PatchSet: 7
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>