summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorJason Barnett <jason.w.barnett@gmail.com>2023-01-02 13:42:23 -0500
committerGitHub <noreply@github.com>2023-01-02 20:42:23 +0200
commitbdd0672a5830dfdd368d04880657015a71f685f1 (patch)
treedcd47ab550b9e2eaccd618c221c80713be97b980 /.pre-commit-config.yaml
parent3722f6fa18e6b8cfb657ce63614188a8536a2a45 (diff)
downloadkombu-bdd0672a5830dfdd368d04880657015a71f685f1.tar.gz
add --keep-runtime-typing argument to pyupgrade (#1639)
Per https://github.com/celery/kombu/pull/1632 @thedrow asked to add this argument so `Optional` is still used.
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 91d2ed9d..a311f306 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -3,7 +3,7 @@ repos:
rev: v3.3.1
hooks:
- id: pyupgrade
- args: ["--py37-plus"]
+ args: ["--py37-plus", "--keep-runtime-typing"]
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.0