From 905f35467535d34990223e3dc51e28dd981798c5 Mon Sep 17 00:00:00 2001 From: Ibraheem Tuffaha Date: Sun, 14 Jul 2024 03:21:04 +0000 Subject: [PATCH] Add pyupgrade with py312-plus support for pre-commit --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 52a47f0..2082cb7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,6 +26,12 @@ repos: - id: trailing-whitespace types: [python] + - repo: https://github.com/asottile/pyupgrade + rev: v3.16.0 + hooks: + - id: pyupgrade + args: [--py312-plus] + - repo: local hooks: - id: black