From fb9920e2c32bc52b3ec10fcf73c75b9e8d34f94c Mon Sep 17 00:00:00 2001 From: gunjan-solanki Date: Wed, 3 Feb 2021 20:21:14 +0530 Subject: [PATCH] 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 --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 677aa9100015f..0fc6e61049a44 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,10 +24,10 @@ repos: hooks: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v2.7.4 + rev: v2.9.0 hooks: - id: pyupgrade - args: [--py37-plus] + args: [--py37-plus, --keep-runtime-typing] - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.7.0 hooks: