Skip to content

Commit 891659d

Browse files
committed
chore(pre-commit): bump pyupgrade to v3.22.0 for Python 3.14
pyupgrade v3.21.0 calls tokenize.cookie_re.match() on str tokens. In Python 3.14 that pattern is bytes, so the hook raises TypeError on any file with a leading comment. pre-commit.ci now runs Python 3.14 by default, which is why it is red on every PR opened since early 2026 while the GitHub Actions lint job (3.11) stays green. Fixed upstream in 3.21.1; v3.22.0 matches the rev in the pending autoupdate (Bluetooth-Devices#131).
1 parent e9acdf5 commit 891659d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.pre-commit-config.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ repos:
3434
- id: prettier
3535
args: ["--tab-width", "2"]
3636
- repo: https://github.com/asottile/pyupgrade
37-
rev: v3.21.0
37+
rev: v3.22.0
3838
hooks:
3939
- id: pyupgrade
4040
args: [--py37-plus]

0 commit comments

Comments
 (0)