Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1203262?usp=email )
Change subject: tests: update pre-commit hooks
......................................................................
tests: update pre-commit hooks
Also drop pre-commit tests with EOL Python 3.9 which isn't
supported by some hooks anymore e.g. pyupgrade.
Bug: T408718
Change-Id: Ic189775d63441c1a1d540211d5552a21f7633b74
---
M .github/workflows/pre-commit.yml
M .pre-commit-config.yaml
M tox.ini
3 files changed, 5 insertions(+), 5 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Verified; Looks good to me, approved
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 9372a93..389028b 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -23,7 +23,7 @@
fail-fast: false
matrix:
python-version:
- - '3.9'
+ - '3.10'
- '3.13'
- '3.14'
os:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 84c6fab..8d37634 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -63,14 +63,14 @@
language: python
require_serial: true
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.14.3
+ rev: v0.14.4
hooks:
- id: ruff-check
alias: ruff
args:
- --fix
- repo: https://github.com/asottile/pyupgrade
- rev: v3.21.0
+ rev: v3.21.1
hooks:
- id: pyupgrade
args:
@@ -87,7 +87,7 @@
- --remove-unused-variables
exclude: ^pywikibot/backports\.py$
- repo: https://github.com/PyCQA/isort
- rev: 6.1.0
+ rev: 7.0.0
hooks:
- id: isort
exclude: ^pwb\.py$
diff --git a/tox.ini b/tox.ini
index 7a4de34..73d628e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,7 +4,7 @@
skip_missing_interpreters = True
envlist =
commit-message
- lint-py{39,313}
+ lint-py{310,313}
[params]
# Note: tox 4 does not support multiple lines when doing parameters
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1203262?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: Ic189775d63441c1a1d540211d5552a21f7633b74
Gerrit-Change-Number: 1203262
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]