/
.pre-commit-config.yaml
46 lines (40 loc) · 1.24 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
repos:
- repo: https://github.com/rtts/djhtml
rev: '3.0.6' # replace with the latest tag on GitHub
hooks:
- id: djhtml
- id: djcss
- id: djjs
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
args: ['--line-length', '92', '--target-version', 'py311']
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.15.0
hooks:
- id: django-upgrade
args: [--target-version, '5.0']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-ast
- id: sort-simple-yaml
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py312-plus]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: '1.5.3'
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.1.9'
hooks:
- id: ruff
# Respect `exclude` and `extend-exclude` settings.
args: ['--fix', '--respect-gitignore', '--exclude', './tools']