mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-10-22 11:44:35 +03:00
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:
parent
653343cf32
commit
03f1ecf7f1
|
@ -34,13 +34,11 @@ repos:
|
|||
additional_dependencies:
|
||||
# python doesn't come with a toml parser prior to 3.11
|
||||
- "tomli; python_version < '3.11'"
|
||||
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v3.19.1
|
||||
rev: v3.21.0
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: ["--py39-plus", "--keep-percent-format"]
|
||||
|
||||
args: ["--py310-plus", "--keep-percent-format"]
|
||||
- repo: https://github.com/tox-dev/pyproject-fmt
|
||||
rev: v2.6.0
|
||||
hooks:
|
||||
|
|
Loading…
Reference in New Issue
Block a user