-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (34 loc) · 963 Bytes
/
.pre-commit-config.yaml
File metadata and controls
37 lines (34 loc) · 963 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
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.25
hooks:
- id: validate-pyproject
- repo: local
hooks:
- id: uv
name: uv-lock
entry: uv lock
language: system
files: ^(uv\.lock|pyproject\.toml|uv\.toml)$
pass_filenames: false
- id: ruff-check
name: ruff check
entry: uv run ruff check --fix --exit-non-zero-on-fix
language: system
types_or: [python, pyi, jupyter]
- id: ruff-format
name: ruff format
entry: uv run ruff format --force-exclude
language: system
types_or: [python, pyi, jupyter]
- id: ty
name: ty check
entry: uv run ty check
language: system
types_or: [python, pyi, jupyter]
pass_filenames: false