-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
52 lines (52 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: no-commit-to-branch
args: [-b, main]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-added-large-files
- id: check-merge-conflict
exclude: |
(?x)^(
uml/.*|
.idea/.*|
docker-compose.yml
)$
- repo: https://github.com/lyz-code/yamlfix/
rev: 1.16.0
hooks:
- id: yamlfix
exclude: |
(?x)(
^infra/|
^.github/|
testing_app_swagger.yml|
schema.yml|
docker-compose.yml
)
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
args: ['-d {extends: relaxed, rules: {line-length: disable}}', -s]
exclude: (?x)( ^infra/.* | docker-compose\.yml )
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.1.1
hooks:
- id: black
language_version: python3.12
exclude: ^.*\b(migrations)\b.*$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
exclude: (?x)( ^.*\b(migrations)\b.*$ | manage\.py$ )
args: [--explicit-package-bases]
additional_dependencies: [types-requests]