Skip to content

Commit

Permalink
CI: Upgrade 'pyupgrade' (v2.7.4 --> v2.9.0) (#39538)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gunjan-solanki authored Feb 3, 2021
1 parent 9a52a81 commit dae99c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dae99c7

Please sign in to comment.