-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
57 lines (51 loc) · 1.47 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
repos:
- repo: https://github.com/fsfe/reuse-tool
rev: v5.0.2
hooks:
- id: reuse
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-toml
- id: end-of-file-fixer
exclude: "docs/src/graphics/.*"
- id: fix-byte-order-marker
- id: mixed-line-ending
args: ["--fix", "lf"]
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.3
hooks:
- id: ruff
args: [--fix]
language: system
- id: ruff-format
language: system
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
- id: mypy
args: [--config-file=pyproject.toml]
language: system
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
hooks:
- id: pyupgrade
args: ["--py311-plus"]
language: system
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
files: backend/mora/graphapi/
exclude: (backend/mora/graphapi/gmodels/|backend/mora/graphapi/versions/v5/facet.py|backend/mora/graphapi/versions/latest/orgmodel.py)
args: ["--convention=google", "--add-ignore=D1"]
additional_dependencies:
- toml
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.1.1
hooks:
- id: commitizen
- id: commitizen-branch
stages: [pre-push]