-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.pre-commit-config.yaml
33 lines (33 loc) · 1.01 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
repos:
- repo: local
hooks:
- id: api-ruff-format
stages: [commit]
name: api-ruff-format
language: system
entry: /bin/sh -c 'cd ./api/ && ruff format .'
types: [python]
- id: api-ruff
stages: [commit]
name: api-ruff
language: system
entry: /bin/sh -c 'cd ./api/ && ruff check . --output-format=full --fix'
types: [python]
- id: caluma-ruff-format
stages: [ commit ]
name: caluma-ruff-format
language: system
entry: /bin/sh -c 'cd ./caluma/ && ruff format .'
types: [ python ]
- id: caluma-ruff
stages: [ commit ]
name: caluma-ruff
language: system
entry: /bin/sh -c 'cd ./caluma/ && ruff check . --config ../api/pyproject.toml --output-format=full --fix'
types: [ python ]
- id: gitlint
stages: [commit-msg]
name: gitlint
description: Validate commit lint
entry: gitlint --msg-filename
language: system