forked from hotosm/fAIr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (41 loc) · 1.17 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
46 lines (41 loc) · 1.17 KB
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
default_install_hook_types: [ pre-commit, commit-msg, pre-push ]
default_language_version:
python: python3.12
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.12
hooks:
- id: ruff-check
args: [ --fix ]
files: ^backend/
- id: ruff-format
files: ^backend/
- repo: local
hooks:
- id: ty
name: ty
entry: uv run --directory backend ty check
language: system
types: [ python ]
files: ^backend/
pass_filenames: false
- id: uv-lock-check
name: uv lock check
entry: uv lock --directory backend --check
language: system
files: ^backend/(pyproject\.toml|uv\.lock)$
pass_filenames: false
- id: pytest
name: pytest (backend)
entry: uv run --directory backend pytest
language: system
types: [ python ]
files: ^backend/
pass_filenames: false
stages: [ pre-push ]
- id: commitizen
name: commitizen check
entry: uv run cz--config pyproject.toml check --commit-msg-file
files: ^backend/
language: system
stages: [ commit-msg ]