-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (61 loc) · 1.6 KB
/
.pre-commit-config.yaml
File metadata and controls
70 lines (61 loc) · 1.6 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
default_stages:
- pre-commit
default_install_hook_types:
- pre-commit
- commit-msg
- pre-push
repos:
- repo: local
hooks:
- id: ruff-format
name: ruff format
entry: uv run ruff format --verbose
language: system
types_or: [python, pyi]
- id: ruff-check
name: ruff check
entry: uv run ruff check --fix --config=pyproject.toml
language: system
types_or: [python, pyi]
- id: ty-check
name: ty check
entry: uv run ty check src/
language: system
types_or: [python, pyi]
- repo: builtin
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: end-of-file-fixer
exclude: ^tests/data/.*\.csv$
- id: check-case-conflict
- id: fix-byte-order-marker
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-xml
- id: mixed-line-ending
- id: check-symlinks
- id: check-merge-conflict
- id: detect-private-key
- id: no-commit-to-branch
- id: check-executables-have-shebangs
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.10.0
hooks:
- id: commitizen
stages:
- commit-msg
- repo: local
hooks:
- id: pytest
name: pytest (quick)
entry: uv run pytest -q --maxfail=1 --disable-warnings --cov-report=term-missing
language: system
types: [python]
pass_filenames: false
stages: [pre-push]
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.4
hooks:
- id: uv-lock