-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
39 lines (39 loc) · 1015 Bytes
/
.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
repos:
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
hooks:
- id: ruff
- repo: local
hooks:
- id: mypy
language: system
name: mypy
entry: bash -c "mypy ."
types: ["python"]
pass_filenames: false
- repo: local
hooks:
- id: migrations-check
language: system
name: migrations
entry: bash -c "./manage.py makemigrations --check --dry-run"
types: ["python"]
pass_filenames: false
- repo: local
hooks:
- id: django-check
language: system
name: django
entry: bash -c "./manage.py check"
types: ["python"]
pass_filenames: false
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v1.0.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']