新增pyupgrade钩子

代码风格统一化
This commit is contained in:
LIghtJUNction
2025-10-21 11:17:20 +08:00
committed by GitHub
parent 8afefada0a
commit fe8d2718c4
+7
View File
@@ -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]