Skip to content

Commit 33ac570

Browse files
committed
Add pyupgrade and django-upgrade pre-commit hooks
1 parent 8de6921 commit 33ac570

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.pre-commit-config.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ repos:
1414
rev: 0.10.1
1515
hooks:
1616
- id: doc8
17+
- repo: https://github.com/asottile/pyupgrade
18+
rev: v2.29.1
19+
hooks:
20+
- id: pyupgrade
21+
args: [--py36-plus]
22+
- repo: https://github.com/adamchainz/django-upgrade
23+
rev: 1.4.0
24+
hooks:
25+
- id: django-upgrade
26+
args: [--target-version, "3.2"]
1727
- repo: https://github.com/pycqa/isort
1828
rev: 5.10.1
1929
hooks:

0 commit comments

Comments
 (0)