-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
54 lines (53 loc) · 1.4 KB
/
.pre-commit-config.yaml
File metadata and controls
54 lines (53 loc) · 1.4 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
47
48
49
50
51
52
53
54
repos:
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.11.2
hooks:
- id: uv-lock
- repo: local
hooks:
- id: ruff
name: ruff
entry: ruff check
language: python
types_or: [ python, pyi, jupyter ]
args: [ --fix ]
- id: ruff
name: ruff
entry: ruff format
language: python
types_or: [ python, pyi, jupyter ]
- id: ty
name: ty check
entry: uv run ty check
language: python
pass_filenames: false
always_run: true
- id: pytest
name: pytest
entry: uv run pytest -vv --cov=src --cov-report term-missing:skip-covered --cov-report=json:coverage.json
language: python
pass_filenames: false
always_run: true
- id: repo-map
name: repo_map
entry: uv run -m repo_mapper
language: python
pass_filenames: false
args:
- --repo-root
- .
- --readme-path
- ./README.md
- --gitignore-path
- ./.gitignore
- --allowed-exts
- py,md,yaml,toml,lock
- --ignore-dirs
- .venv,target,.git,mock_data,.pytest_cache
# - --ignore-hidden
- id: update-cov
name: update_cov
entry: uv run -m dev_tools.update_cov
language: python
pass_filenames: false
always_run: true