Skip to content

Commit 6d145fb

Browse files
mikemangeraleksihakli
authored andcommitted
Add pre-commit hooks
1 parent 69bcd88 commit 6d145fb

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.pre-commit-config.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
1-
repos: []
1+
repos:
2+
- repo: https://github.com/adamchainz/django-upgrade
3+
rev: 1.23.1
4+
hooks:
5+
- id: django-upgrade
6+
args: [--target-version, "4.2"]
7+
8+
- repo: https://github.com/asottile/pyupgrade
9+
rev: v3.19.1
10+
hooks:
11+
- id: pyupgrade
12+
args: [--py39-plus]
13+
14+
- repo: https://github.com/pre-commit/pre-commit-hooks
15+
rev: v5.0.0
16+
hooks:
17+
- id: check-executables-have-shebangs
18+
- id: check-illegal-windows-names
19+
- id: check-merge-conflict
20+
- id: end-of-file-fixer
21+
- id: fix-byte-order-marker
22+
- id: mixed-line-ending
23+
- id: trailing-whitespace

0 commit comments

Comments
 (0)