Skip to content

Commit

Permalink
Merge "trsts: Update pre-commit hooks"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Feb 2, 2025
2 parents fdf13a3 + 4ac5d0d commit cfac87c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ repos:
- 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:
Expand All @@ -77,12 +77,12 @@ repos:
- --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)
Expand Down
7 changes: 3 additions & 4 deletions pywikibot/userinterfaces/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
8 changes: 5 additions & 3 deletions pywikibot/version.py
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down Expand Up @@ -79,7 +79,8 @@ def getversion(online: bool = True) -> str:
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),
Expand Down Expand Up @@ -211,7 +212,8 @@ def getversion_package(path=None) -> tuple[str, str, str, str]:
"""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),
Expand Down

0 comments on commit cfac87c

Please sign in to comment.