-
Notifications
You must be signed in to change notification settings - Fork 141
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
51 lines (44 loc) · 1.23 KB
/
.pre-commit-config.yaml
File metadata and controls
51 lines (44 loc) · 1.23 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
repos:
- repo: local
hooks:
- id: lock
name: lock
entry: uv sync --upgrade --all-extras
language: system
pass_filenames: false
- id: pyproject-fmt
name: pyproject-fmt
entry: uv run pyproject-fmt pyproject.toml
language: system
pass_filenames: false
- id: ruff-check
name: ruff-check
entry: uv run ruff check --fix --exit-non-zero-on-fix
language: system
pass_filenames: false
- id: ruff-format
name: ruff-format
entry: uv run ruff format --exit-non-zero-on-fix
language: system
pass_filenames: false
- id: zuban
name: zuban
entry: uv run zuban check src
language: system
pass_filenames: false
- id: codespell
name: codespell
entry: uv run codespell --toml pyproject.toml
language: system
pass_filenames: false
- id: gen_sensors
name: Generate sensor docs
entry: uv run scripts/gen_sensors.py
language: system
pass_filenames: false
- id: pytest
name: pytest
entry: uv run pytest -vv
language: system
types: [python]
pass_filenames: false