-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
49 lines (45 loc) · 1.26 KB
/
.pre-commit-config.yaml
File metadata and controls
49 lines (45 loc) · 1.26 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
# Pre-commit hooks for Kida
# Install: pip install pre-commit && pre-commit install
# Run manually: pre-commit run --all-files
#
# Note: Kida requires Python 3.14+ (uses t-string syntax from PEP 750)
default_language_version:
python: python3.14
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.1
hooks:
# Run the linter
- id: ruff-check
args: [--fix]
types_or: [python, pyi]
- repo: local
hooks:
- id: ruff-format
name: ruff format
entry: uv run ruff format .
language: system
types: [python]
pass_filenames: false
- id: ty
name: ty type checker
entry: uv run ty check src/kida/
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
args: [--maxkb=1000]
- id: check-case-conflict
- id: check-merge-conflict
- id: debug-statements
- id: check-toml
- id: check-yaml
args: [--unsafe]
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-executables-have-shebangs
- id: detect-private-key