Skip to content

Commit 4a6bee4

Browse files
BlackhatBlackhat
Blackhat
authored and
Blackhat
committed
CI: Upgrade 'pyupgrade' (v2.7.4 --> v2.9.0)
Resolves: GH39523 This commit also adds '--keep-runtime-typing' flag to pyupgrade because of issue with runtime introspection of type hints and backwards compatiblity with v1.2.2. This flag can be removed when v1.3.0 is out and autobackports is a bit easier
1 parent 9a52a81 commit 4a6bee4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ repos:
2424
hooks:
2525
- id: isort
2626
- repo: https://github.com/asottile/pyupgrade
27-
rev: v2.7.4
27+
rev: v2.9.0
2828
hooks:
2929
- id: pyupgrade
30-
args: [--py37-plus]
30+
args: [--py37-plus, --keep-runtime-typing]
3131
- repo: https://github.com/pre-commit/pygrep-hooks
3232
rev: v1.7.0
3333
hooks:

0 commit comments

Comments
 (0)