Set minimum Python version to 3.10 in pyupgrade pre-commit hook (#9798)

* Set min Python version to 3.10 in pyupgrade

* Consistent formatting

* Update to latest version
This commit is contained in:
Bruno Alla 2025-10-20 19:52:44 +02:00 committed by GitHub
parent 653343cf32
commit 03f1ecf7f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,13 +34,11 @@ repos:
additional_dependencies: additional_dependencies:
# python doesn't come with a toml parser prior to 3.11 # python doesn't come with a toml parser prior to 3.11
- "tomli; python_version < '3.11'" - "tomli; python_version < '3.11'"
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.19.1 rev: v3.21.0
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: ["--py39-plus", "--keep-percent-format"] args: ["--py310-plus", "--keep-percent-format"]
- repo: https://github.com/tox-dev/pyproject-fmt - repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.6.0 rev: v2.6.0
hooks: hooks: