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] +