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

Change subject: trsts: Update pre-commit hooks
......................................................................

trsts: Update pre-commit hooks

Change-Id: Iddb73d1a5195b9d2c7da80b4f17ac177e745e464
---
M .pre-commit-config.yaml
M pywikibot/userinterfaces/gui.py
M pywikibot/version.py
3 files changed, 11 insertions(+), 10 deletions(-)

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




diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index dc7c0fb..a511474 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -54,7 +54,7 @@
       - id: rst-directive-colons
       - id: rst-inline-touching-normal
   - repo: https://github.com/astral-sh/ruff-pre-commit
-    rev: v0.9.2
+    rev: v0.9.4
     hooks:
       - id: ruff
         args:
@@ -77,12 +77,12 @@
           - --remove-unused-variables
         exclude: '^pywikibot/backports\.py$'
   - repo: https://github.com/PyCQA/isort
-    rev: 5.13.2
+    rev: 6.0.0
     hooks:
       - id: isort
         exclude: '^pwb\.py$'
   - repo: https://github.com/jshwi/docsig
-    rev: v0.66.1
+    rev: v0.68.0
     hooks:
       - id: docsig
         exclude: ^(tests|scripts)
diff --git a/pywikibot/userinterfaces/gui.py b/pywikibot/userinterfaces/gui.py
index 9091044..e560c72 100644
--- a/pywikibot/userinterfaces/gui.py
+++ b/pywikibot/userinterfaces/gui.py
@@ -34,16 +34,15 @@
     ConfigDialog = ReplaceDialog = SearchDialog = object
     idleConf = MultiCallCreator = object  # noqa:  N816
 else:
-    import tkinter
-    from tkinter import Frame, simpledialog
-    from tkinter.scrolledtext import ScrolledText
-
     import idlelib
+    import tkinter
     from idlelib import replace as ReplaceDialog  # noqa: N812
     from idlelib import search as SearchDialog  # noqa: N812
     from idlelib.config import idleConf
     from idlelib.configdialog import ConfigDialog
     from idlelib.multicall import MultiCallCreator
+    from tkinter import Frame, simpledialog
+    from tkinter.scrolledtext import ScrolledText


 __all__ = ('EditBoxWindow', 'TextEditor', 'Tkdialog')
diff --git a/pywikibot/version.py b/pywikibot/version.py
index 33e941d..9af081e 100644
--- a/pywikibot/version.py
+++ b/pywikibot/version.py
@@ -1,6 +1,6 @@
 """Module to determine the pywikibot version (tag, revision and date)."""
 #
-# (C) Pywikibot team, 2007-2024
+# (C) Pywikibot team, 2007-2025
 #
 # Distributed under the terms of the MIT license.
 #
@@ -79,7 +79,8 @@
 def getversiondict() -> dict[str, str]:
     """Get version info for the package.

-    :return:
+    :return: Return a dict with the following keys:
+
         - tag (name for the repository),
         - rev (current revision identifier),
         - date (date of current revision),
@@ -211,7 +212,8 @@
     """Get version info for an installed package.

     :param path: Unused argument
-    :return:
+    :return: Return a tuple with the following items:
+
         - tag: 'pywikibot/__init__.py'
         - rev: '-1 (unknown)'
         - date (date the package was installed locally),

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1116519?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: Iddb73d1a5195b9d2c7da80b4f17ac177e745e464
Gerrit-Change-Number: 1116519
Gerrit-PatchSet: 1
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]

Reply via email to