-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
67 lines (61 loc) · 1.45 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
repos:
- repo: local
hooks:
- id: ruff
name: ruff
entry: poetry run ruff --fix
language: system
types:
- python
stages:
- commit
- id: black
name: reformat code with black
entry: poetry run black
types:
- python
language: system
stages:
- commit
- id: health-check
name: health check
entry: poetry run python manage.py check --fail-level WARNING
language: system
always_run: true
pass_filenames: false
stages:
- commit
- id: migrations
name: check migrations
entry: poetry run python3 manage.py makemigrations --check --dry-run
language: system
always_run: true
pass_filenames: false
stages:
- push
- repo: https://github.com/djlint/djLint
rev: v1.34.1
hooks:
- id: djlint-django
stages:
- commit
- id: djlint-reformat-django
stages:
- commit
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
name: trim trailing whitespace
types_or:
- pug
- markdown
stages:
- commit
- id: end-of-file-fixer
name: end files with a single newline
types_or:
- pug
- markdown
stages:
- commit