jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1332212?usp=email )

Change subject: docs: Fix spelling and grammar errors
......................................................................

docs: Fix spelling and grammar errors

Correct misspellings and duplicated words in documentation and docstrings.

Rename misspelled test methods while preserving test discovery.

Change-Id: Ieb7efd876a2dbe8fcbf7fe2c1f82804f20762c50
---
M docs/api_ref/bot.rst
M docs/library_usage.rst
M docs/make.bat
M pywikibot/data/api/_optionset.py
M pywikibot/page/_user.py
M tests/aspects.py
M tests/site_login_logout_tests.py
M tests/ui_options_tests.py
M tests/unlinkbot_tests.py
M tests/wbtypes_tests.py
10 files changed, 12 insertions(+), 12 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved




diff --git a/docs/api_ref/bot.rst b/docs/api_ref/bot.rst
index 4903d03..ce3e886 100644
--- a/docs/api_ref/bot.rst
+++ b/docs/api_ref/bot.rst
@@ -27,7 +27,7 @@
       .. attribute:: generator
          :type: Iterable

-         Instance variable to hold the Iterbale processed by :meth:`run`
+         Instance variable to hold the Iterable processed by :meth:`run`
          method. The is added to the class with *generator* keyword
          argument and the proposed type is a ``Generator``. If not,
          :meth:`run` upcast the generator attribute to become a
diff --git a/docs/library_usage.rst b/docs/library_usage.rst
index 344f46d..7ca3b5f 100644
--- a/docs/library_usage.rst
+++ b/docs/library_usage.rst
@@ -90,7 +90,7 @@
       :mod:`pywikibot.pagegenerators` are parsed here using
       :meth:`GeneratorFactory.handle_args()
       <pagegenerators.GeneratorFactory.handle_args>`.
-:25:  Local options which are are available for the current bot are
+:25:  Local options which are available for the current bot are
       parsed in this loop.
 :29:  Create the bot passing keyword only parameters and run it.

diff --git a/docs/make.bat b/docs/make.bat
index bcc8d53..e70b3a8 100644
--- a/docs/make.bat
+++ b/docs/make.bat
@@ -49,10 +49,10 @@
 rem calculating the duration is easy
 set /A DURATION=%ENDTIME%-%STARTTIME%
 
-rem we might have measured the time inbetween days
+rem we might have measured the time between days
 if %ENDTIME% LSS %STARTTIME% set set /A DURATION=%STARTTIME%-%ENDTIME%
 
-rem now break the seconds down to hors, minutes, seconds
+rem now break the seconds down to hours, minutes, seconds
 set /A DURATIONH=%DURATION% / 3600
 set /A DURATIONM=(%DURATION% - %DURATIONH%*3600) / 60
 set /A DURATIONS=(%DURATION% - %DURATIONH%*3600 - %DURATIONM%*60)
diff --git a/pywikibot/data/api/_optionset.py b/pywikibot/data/api/_optionset.py
index 2dcb957..32219a3 100644
--- a/pywikibot/data/api/_optionset.py
+++ b/pywikibot/data/api/_optionset.py
@@ -21,7 +21,7 @@

     If it is instantiated with the associated site, module and parameter
     it will only allow valid names as options. If instantiated 'lazy
-    loaded' it won't checks if the names are valid until the site has
+    loaded' it won't check if the names are valid until the site has
     been set (which isn't required, but recommended). The site can only
     be set once if it's not None and after setting it, any site (even
     None) will fail.
diff --git a/pywikibot/page/_user.py b/pywikibot/page/_user.py
index 303378f..c48003b 100644
--- a/pywikibot/page/_user.py
+++ b/pywikibot/page/_user.py
@@ -317,7 +317,7 @@
         return self.site.is_locked(self.username, force)

     def isEmailable(self, force: bool = False) -> bool:  # noqa: N802
-        """Determine whether emails may be send to this user through MediaWiki.
+        """Determine whether emails may be sent to this user through MediaWiki.

         :param force: If True, forces reloading the data from API
         """
diff --git a/tests/aspects.py b/tests/aspects.py
index fb23848..bd11cd8 100644
--- a/tests/aspects.py
+++ b/tests/aspects.py
@@ -1559,7 +1559,7 @@
         .. version-changed:: 11.7
            Return timeout information.

-        :param args: :mod:`pwb` warapper script arguments
+        :param args: :mod:`pwb` wrapper script arguments
         :param kwargs: keyword arguments of :func:`tests.utils.execute_pwb`
         :return: Result of :func:`tests.utils.execute_pwb`.
         """
diff --git a/tests/site_login_logout_tests.py b/tests/site_login_logout_tests.py
index 42dfb3f..7fa84ff 100755
--- a/tests/site_login_logout_tests.py
+++ b/tests/site_login_logout_tests.py
@@ -7,7 +7,7 @@
 """Test for login and logout methods.

 These tests are separated from others because they should not be run in
-paralled CI test tasks. Any logout could lead other parallel tests to
+parallel CI test tasks. Any logout could lead other parallel tests to
 fail.
 """
 from __future__ import annotations
diff --git a/tests/ui_options_tests.py b/tests/ui_options_tests.py
index e342786..efe1b7c 100755
--- a/tests/ui_options_tests.py
+++ b/tests/ui_options_tests.py
@@ -193,7 +193,7 @@
         self.assertEqual(option.result('2'), ('', [options[1]]))
         self.assertEqual(option.result('1,2'), ('', [options[0], options[1]]))

-    def test_choice_excepton(self) -> None:
+    def test_choice_exception(self) -> None:
         """Test ChoiceException."""
         option = ChoiceException('Test', 'T')
         self.assertTrue(option.stop)
diff --git a/tests/unlinkbot_tests.py b/tests/unlinkbot_tests.py
index 9352800..b335c3a 100755
--- a/tests/unlinkbot_tests.py
+++ b/tests/unlinkbot_tests.py
@@ -33,7 +33,7 @@

     net = False

-    def test_edit_replacement_excepton(self) -> None:
+    def test_edit_replacement_exception(self) -> None:
         """Test ChoiceException."""
         option = EditReplacementError()
         self.assertTrue(option.stop)
diff --git a/tests/wbtypes_tests.py b/tests/wbtypes_tests.py
index 992a824..2b08179 100755
--- a/tests/wbtypes_tests.py
+++ b/tests/wbtypes_tests.py
@@ -920,7 +920,7 @@
         with self.assertRaisesRegex(ValueError, regex):
             pywikibot.WbGeoShape('A string', self.get_repo())

-    def test_WbGeoShape_error_on_non_exitant_page(self) -> None:
+    def test_WbGeoShape_error_on_non_existent_page(self) -> None:
         """Test WbGeoShape error handling of a non-existent page."""
         page = Page(self.commons, 'Non-existent page... really')
         regex = r'^Page \[\[.+?\]\] must exist\.$'
@@ -995,7 +995,7 @@
         with self.assertRaisesRegex(ValueError, regex):
             pywikibot.WbTabularData('A string', self.get_repo())

-    def test_WbTabularData_error_on_non_exitant_page(self) -> None:
+    def test_WbTabularData_error_on_non_existent_page(self) -> None:
         """Test WbTabularData error handling of a non-existent page."""
         page = Page(self.commons, 'Non-existent page... really')
         regex = r'^Page \[\[.+?\]\] must exist\.$'

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1332212?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ieb7efd876a2dbe8fcbf7fe2c1f82804f20762c50
Gerrit-Change-Number: 1332212
Gerrit-PatchSet: 2
Gerrit-Owner: Mahveotm <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to