Skip to content

Commit cfac87c

Browse files
jenkins-botGerrit Code Review
authored andcommitted
Merge "trsts: Update pre-commit hooks"
2 parents fdf13a3 + 4ac5d0d commit cfac87c

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ repos:
5454
- id: rst-directive-colons
5555
- id: rst-inline-touching-normal
5656
- repo: https://github.com/astral-sh/ruff-pre-commit
57-
rev: v0.9.2
57+
rev: v0.9.4
5858
hooks:
5959
- id: ruff
6060
args:
@@ -77,12 +77,12 @@ repos:
7777
- --remove-unused-variables
7878
exclude: '^pywikibot/backports\.py$'
7979
- repo: https://github.com/PyCQA/isort
80-
rev: 5.13.2
80+
rev: 6.0.0
8181
hooks:
8282
- id: isort
8383
exclude: '^pwb\.py$'
8484
- repo: https://github.com/jshwi/docsig
85-
rev: v0.66.1
85+
rev: v0.68.0
8686
hooks:
8787
- id: docsig
8888
exclude: ^(tests|scripts)

pywikibot/userinterfaces/gui.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,15 @@
3434
ConfigDialog = ReplaceDialog = SearchDialog = object
3535
idleConf = MultiCallCreator = object # noqa: N816
3636
else:
37-
import tkinter
38-
from tkinter import Frame, simpledialog
39-
from tkinter.scrolledtext import ScrolledText
40-
4137
import idlelib
38+
import tkinter
4239
from idlelib import replace as ReplaceDialog # noqa: N812
4340
from idlelib import search as SearchDialog # noqa: N812
4441
from idlelib.config import idleConf
4542
from idlelib.configdialog import ConfigDialog
4643
from idlelib.multicall import MultiCallCreator
44+
from tkinter import Frame, simpledialog
45+
from tkinter.scrolledtext import ScrolledText
4746

4847

4948
__all__ = ('EditBoxWindow', 'TextEditor', 'Tkdialog')

pywikibot/version.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Module to determine the pywikibot version (tag, revision and date)."""
22
#
3-
# (C) Pywikibot team, 2007-2024
3+
# (C) Pywikibot team, 2007-2025
44
#
55
# Distributed under the terms of the MIT license.
66
#
@@ -79,7 +79,8 @@ def getversion(online: bool = True) -> str:
7979
def getversiondict() -> dict[str, str]:
8080
"""Get version info for the package.
8181
82-
:return:
82+
:return: Return a dict with the following keys:
83+
8384
- tag (name for the repository),
8485
- rev (current revision identifier),
8586
- date (date of current revision),
@@ -211,7 +212,8 @@ def getversion_package(path=None) -> tuple[str, str, str, str]:
211212
"""Get version info for an installed package.
212213
213214
:param path: Unused argument
214-
:return:
215+
:return: Return a tuple with the following items:
216+
215217
- tag: 'pywikibot/__init__.py'
216218
- rev: '-1 (unknown)'
217219
- date (date the package was installed locally),

0 commit comments

Comments
 (0)