jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1167212?usp=email )
Change subject: [doc] update ROADMAP.rst and other document files
......................................................................
[doc] update ROADMAP.rst and other document files
Change-Id: I1e0c65d0bee66968b05ddbba4fd2a09a85efc91e
---
M ROADMAP.rst
M conftest.py
M docs/tests_ref/index.rst
A docs/tests_ref/precommit.rst
A docs/tests_ref/pytest.rst
M tests/hooks/__init__.py
M tests/hooks/copyright_fixer.py
7 files changed, 40 insertions(+), 8 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/ROADMAP.rst b/ROADMAP.rst
index fb6a0e9..26bbc03 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,9 +1,11 @@
Current Release Changes
=======================
+* ``textlib.to_latin_digits()`` was renamed to :func:`textlib.to_ascii_digits`
(:phab:`T398146#10958283`),
+ ``NON_LATIN_DIGITS`` of :mod:`userinterfaces.transliteration` was renamed to
``NON_ASCII_DIGITS``.
* Add -cookies option to :mod:`login<pywikibot.scripts.login>` script to login
with cookies files only
* Create a Site using :func:`pywikibot.Site` constructor with a given url even
if the url ends with
- a slash (:phab:`T396592`)
+ a slash (:phab:`T396592`)
* Remove hard-coded error messages from :meth:`login.LoginManager.login` and
use API response instead
* Add additional informations to
:meth:`Site.login()<pywikibot.site._apisite.APISite.login>` error message
(:phab:`T395670`)
* i18n updates
@@ -11,6 +13,8 @@
Current Deprecations
====================
+* 10.3.0: ``textlib.to_latin_digits()`` will be removed in favour of
:func:`textlib.to_ascii_digits`,
+ ``NON_LATIN_DIGITS`` of :mod:`userinterfaces.transliteration` will be
removed in favour of ``NON_ASCII_DIGITS``.
* 10.2.0: :mod:`tools.threading.RLock<tools.threading>` is deprecated and
moved to :mod:`backports`
module. The :meth:`backports.RLock.count` method is also deprecated. For
Python 3.14+ use ``RLock``
from Python library ``threading`` instead. (:phab:`T395182`)
diff --git a/conftest.py b/conftest.py
index 8013102..787b6c5 100644
--- a/conftest.py
+++ b/conftest.py
@@ -1,4 +1,7 @@
-"""Configuration file for pytest."""
+"""Configuration file for pytest.
+
+.. versionadded:: 10.3
+"""
#
# (C) Pywikibot team, 2025
#
@@ -27,10 +30,7 @@
def pytest_ignore_collect(collection_path: Path,
config) -> Literal[True] | None:
- """Ignore files matching EXCLUDE_PATTERN when pytest-mypy is loaded.
-
- .. versionadded:: 10.3
- """
+ """Ignore files matching EXCLUDE_PATTERN when pytest-mypy is loaded."""
# Check if any plugin name includes 'mypy'
plugin_names = {p.__class__.__name__.lower()
for p in config.pluginmanager.get_plugins()}
diff --git a/docs/tests_ref/index.rst b/docs/tests_ref/index.rst
index 4c782e3..2d4eefc 100644
--- a/docs/tests_ref/index.rst
+++ b/docs/tests_ref/index.rst
@@ -15,3 +15,5 @@
aspects
basepage
utils
+ precommit
+ pytest
diff --git a/docs/tests_ref/precommit.rst b/docs/tests_ref/precommit.rst
new file mode 100644
index 0000000..1fb5769
--- /dev/null
+++ b/docs/tests_ref/precommit.rst
@@ -0,0 +1,8 @@
+**********************
+precommit hooks module
+**********************
+
+.. automodule:: tests.hooks.copyright_fixer
+ :members:
+ :undoc-members:
+ :show-inheritance:
diff --git a/docs/tests_ref/pytest.rst b/docs/tests_ref/pytest.rst
new file mode 100644
index 0000000..5a3d69e
--- /dev/null
+++ b/docs/tests_ref/pytest.rst
@@ -0,0 +1,8 @@
+*************************
+pytest mypy plugin module
+*************************
+
+.. automodule:: conftest
+ :members:
+ :undoc-members:
+ :show-inheritance:
diff --git a/tests/hooks/__init__.py b/tests/hooks/__init__.py
index 8a22a45..b9e3b06 100644
--- a/tests/hooks/__init__.py
+++ b/tests/hooks/__init__.py
@@ -1,3 +1,10 @@
-"""Local pre-commit hooks for CI tests."""
+"""Local pre-commit hooks for CI tests.
+.. versionadded:: 10.3
+"""
+#
+# (C) Pywikibot team, 2025
+#
+# Distributed under the terms of the MIT license.
+#
from __future__ import annotations
diff --git a/tests/hooks/copyright_fixer.py b/tests/hooks/copyright_fixer.py
index f725190..d3fa734 100755
--- a/tests/hooks/copyright_fixer.py
+++ b/tests/hooks/copyright_fixer.py
@@ -1,5 +1,8 @@
#!/usr/bin/env python
-"""Pre-commit hook to set the leftmost copyright year."""
+"""Pre-commit hook to set the leftmost copyright year.
+
+.. versionadded:: 10.3
+"""
#
# (C) Pywikibot team, 2025
#
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1167212?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: I1e0c65d0bee66968b05ddbba4fd2a09a85efc91e
Gerrit-Change-Number: 1167212
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <[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]