-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (48 loc) · 1.29 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (48 loc) · 1.29 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
name: black to format python code
- repo: https://github.com/pycqa/isort
rev: 6.0.1
hooks:
- id: isort
name: isort to sort imports
args:
- --profile
- black
- --verbose
- --skip-glob
- "**/migrations/*.py"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.17.0
hooks:
- id: mypy
name: mypy to check types
additional_dependencies:
- django-jazzmin==3.0.1
- django-stubs==5.2.2
- djangorestframework==3.16.0
- djangorestframework-stubs==3.16.1
args: ["--config-file=mypy.ini"]
- repo: https://github.com/pycqa/pylint
rev: v3.3.7
hooks:
- id: pylint
name: pylint to check code quality
entry: pylint
language: python
types: [python]
args: ["--rcfile=.pylintrc"]
additional_dependencies:
- django-jazzmin==3.0.1
- Django==5.2.4
- pylint-django==2.6.1
- djangorestframework==3.16.0