-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (41 loc) · 1.02 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (41 loc) · 1.02 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
repos:
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.7.11
hooks:
- id: uv-lock
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.13
hooks:
# Run the linter.
- id: ruff-check
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.22.0
hooks:
- id: commitlint
stages: [commit-msg]
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v9.0.1
hooks:
- id: cspell
exclude: cspell.json
- repo: local
hooks:
- id: ty-check
name: ty-check
entry: uv run ty check --error-on-warning
language: system
types: [python]
pass_filenames: false
always_run: true
- id: pytest
name: pytest-test
entry: uv run pytest test
language: system
types: [python]
pass_filenames: false
always_run: true