-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (36 loc) · 953 Bytes
/
.pre-commit-config.yaml
File metadata and controls
40 lines (36 loc) · 953 Bytes
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
repos:
- repo: local
hooks:
- id: sync packages
name: sync packages
language: system
entry: uv sync --locked --all-packages
stages: [pre-commit]
pass_filenames: false
priority: 0
- id: format
name: sort imports
language: system
entry: uv run ruff check --select I --fix .
stages: [pre-commit]
pass_filenames: false
priority: 1
- id: format
name: format
language: system
entry: uv run ruff format .
stages: [pre-commit]
pass_filenames: false
priority: 1
- id: type check
name: type check
language: system
entry: uv run basedpyright .
pass_filenames: false
priority: 1
- id: contract tests
name: contract tests
language: system
entry: uv run pytest -n auto
pass_filenames: false
priority: 2