Skip to content

Commit 30f1b6a

Browse files
committed
pre-commit: add pyupgrade
1 parent 204fa2b commit 30f1b6a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
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: v2.37.3
15+
hooks:
16+
- id: pyupgrade
17+
args:
18+
- --py37-plus
19+
1220
# Autoformat: Python code
1321
- repo: https://github.com/psf/black
1422
rev: 22.6.0

0 commit comments

Comments
 (0)