Skip to content

Commit 03f1ecf

Browse files
authored
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
1 parent 653343c commit 03f1ecf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,11 @@ repos:
3434
additional_dependencies:
3535
# python doesn't come with a toml parser prior to 3.11
3636
- "tomli; python_version < '3.11'"
37-
3837
- repo: https://github.com/asottile/pyupgrade
39-
rev: v3.19.1
38+
rev: v3.21.0
4039
hooks:
4140
- id: pyupgrade
42-
args: ["--py39-plus", "--keep-percent-format"]
43-
41+
args: ["--py310-plus", "--keep-percent-format"]
4442
- repo: https://github.com/tox-dev/pyproject-fmt
4543
rev: v2.6.0
4644
hooks:

0 commit comments

Comments
 (0)