-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
76 lines (67 loc) · 2 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
73
74
75
76
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.8.0
hooks:
- id: pyupgrade
args: [ "--py310-plus" ]
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.10.0
hooks:
- id: reorder-python-imports
args: [ "--application-directories=.:backend:tests" ]
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
args: [ "--extend-ignore=B008,W503,E203", "--max-line-length=10001" ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
hooks:
- id: mypy
args: [ --config-file=pyproject.toml ]
additional_dependencies:
- aiohttp
- fastapi
- httpx
- os2mo-dar-client==1.0.3
- prometheus_client
- pydantic==1.10.11
- fastramqpi==8.3.0
- sqlalchemy
- starlette_context
- strawberry-graphql==0.237.1
- structlog
- types-python-dateutil
- 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/fsfe/reuse-tool
rev: v1.1.2
hooks:
- id: reuse
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.4.0
hooks:
- id: end-of-file-fixer
exclude: "docs/src/graphics/.*"
- id: trailing-whitespace
- id: mixed-line-ending
args: ["--fix", "lf"]
- id: fix-byte-order-marker
- id: check-merge-conflict
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.37.1
hooks:
- id: commitizen
- id: commitizen-branch
stages: [ push ]