From 9d4800f0a8055ca69c17ddb2ce76a5a4b0f57b4f Mon Sep 17 00:00:00 2001 From: janas-adam <48211033+janas-adam@users.noreply.github.com> Date: Tue, 22 Oct 2024 13:05:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20added=20automatic=20syntax-upgra?= =?UTF-8?q?de=20hook=20~=20pyupgrade=20(#229)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0ca583b5..87bfcdda 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,3 +22,11 @@ repos: types: [python] language: system pass_filenames: false + +- repo: https://github.com/asottile/pyupgrade + rev: v3.18.0 + hooks: + - id: pyupgrade + args: + - --py3-plus + - --keep-runtime-typing