From 8dd6321ef2cde4d5ba3ae6e30747403f1889d2e6 Mon Sep 17 00:00:00 2001 From: Andy Dirnberger Date: Tue, 17 Oct 2023 09:13:26 -0400 Subject: [PATCH] Add pre-commit hook pyupgrade [pyupgrade] can be used as a [pre-commit] hook to update syntax to match newer versions of Python. [pre-commit]: https://pre-commit.com [pyupgrade]: https://pypi.org/p/pyupgrade --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3521c62..23bbad9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,6 +17,11 @@ repos: hooks: - id: editorconfig-checker alias: ec + - repo: https://github.com/asottile/pyupgrade + rev: v3.15.0 + hooks: + - id: pyupgrade + args: ['--py311-plus'] - repo: https://github.com/PyCQA/autoflake rev: v2.2.1 hooks: