-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
72 lines (72 loc) · 1.93 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
68
69
70
71
72
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: debug-statements
- id: check-merge-conflict
- id: detect-private-key
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.1
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/google/yamlfmt
rev: v0.15.0
hooks:
- id: yamlfmt
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
- repo: https://github.com/rtts/djhtml
rev: 3.0.7
hooks:
- id: djhtml
args: ["--tabwidth=2"]
- id: djcss
args: ["--tabwidth=2"]
- id: djjs
args: ["--tabwidth=2"]
- repo: local
hooks:
- id: check_new_migrations
name: check for new migrations
entry: inv django.check-new-migrations
language: system
pass_filenames: false
types: [file]
stages: [pre-push]
- id: tests
name: run tests
entry: inv pytest.run --params="--numprocesses auto --create-db --cov=."
language: system
pass_filenames: false
types: [python]
stages: [pre-push]
- id: mypy
name: mypy
entry: inv mypy.run
language: system
pass_filenames: false
types: [file]
stages: [pre-push]
- id: package_installation_verify
name: verify package can be installed
entry: pip install --dry-run .
language: system
pass_filenames: false
types: [python]
stages: [pre-push]
- id: doc_build_verify
name: verify that docs could be build
entry: inv docs.build
language: system
pass_filenames: false
stages: [pre-push]