-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
50 lines (50 loc) · 1.26 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
---
default_language_version:
python: python3.12
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
args:
- --allow-multiple-documents
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
files: "backend/api"
additional_dependencies: ["types-requests"]
- repo: https://github.com/python-poetry/poetry
rev: 1.8.0
hooks:
- id: poetry-check
args: ["-C", "backend"]
- id: poetry-lock
args: ["-C", "backend"]
- repo: local
hooks:
- id: pytest
name: pytest
entry: poetry
args: ["-C", "backend", "run", "pytest", "backend/tests"]
language: python
types: [python]
- id: pylint
name: pylint
entry: poetry
args: ["-C", "backend", "run", "pylint", "-sn"]
language: python
types: [python]
- id: isort
name: isort
entry: poetry
args: ["-C", "backend", "run", "isort", "--check-only"]
language: python
types: [python]