新增pyupgrade钩子
代码风格统一化
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user