-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (41 loc) · 1.11 KB
/
.pre-commit-config.yaml
File metadata and controls
44 lines (41 loc) · 1.11 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
repos:
# Ruff - linting and formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.13
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
# UV - keep lockfile in sync
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.26
hooks:
- id: uv-lock
# General file hygiene
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- id: check-merge-conflict
- id: check-symlinks
- id: check-case-conflict
- id: fix-byte-order-marker
# Project-wide checks that should run on every commit
- repo: local
hooks:
- id: ty-check
name: ty (full app type check)
entry: uv run ty check
language: system
pass_filenames: false
always_run: true
- id: mypy-check
name: mypy (full app type check)
entry: uv run mypy
language: system
pass_filenames: false
always_run: true