From fe8d2718c4feb1bd26564cb9d92e49872302411f Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Tue, 21 Oct 2025 11:17:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Epyupgrade=E9=92=A9=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 代码风格统一化 --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 35260e4e6..d45934c5a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,3 +17,10 @@ repos: # Run the formatter. - id: ruff-format types_or: [ python, pyi ] + +- repo: https://github.com/asottile/pyupgrade + rev: v3.21.0 + hooks: + - id: pyupgrade + args: [--py310-plus] +