Skip to content

Commit ce44f98

Browse files
committed
pre-commit: enable pyupgrade
1 parent eab0b50 commit ce44f98

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
99
# - Register git hooks: pre-commit install --install-hooks
1010
#
1111
repos:
12-
# # Autoformat: Python code, syntax patterns are modernized
13-
# - repo: https://github.com/asottile/pyupgrade
14-
# rev: v3.0.0
15-
# hooks:
16-
# - id: pyupgrade
17-
# args:
18-
# - --py38-plus
12+
# Autoformat: Python code, syntax patterns are modernized
13+
- repo: https://github.com/asottile/pyupgrade
14+
rev: v3.2.0
15+
hooks:
16+
- id: pyupgrade
17+
args:
18+
- --py36-plus
19+
# check-tmp is a Python based test script run in created environments
20+
# that can be at least Python 3.5 even though we require Python 3.6 for
21+
# repo2docker itself.
22+
exclude: check-tmp
1923

2024
# Autoformat: Python code
2125
- repo: https://github.com/psf/black

0 commit comments

Comments
 (0)