-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (41 loc) · 1.05 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
46 lines (41 loc) · 1.05 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
# Pre-commit hooks for Deriva
# Install: cargo install prek && prek install
# Run manually: prek run --all-files
# Docs: https://github.com/j178/prek
repos:
# Built-in prek hooks
- repo: builtin
hooks:
- id: trailing-whitespace
exclude: '\.md$'
- id: end-of-file-fixer
exclude: '\.md$'
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: check-added-large-files
args: ['--maxkb=1000']
# Typo checker
- repo: https://github.com/crate-ci/typos
rev: v1.29.4
hooks:
- id: typos
# Python hooks
- repo: local
hooks:
- id: ruff-check
name: ruff check
entry: uv run ruff check --fix --exit-non-zero-on-fix
language: system
types: [python]
- id: ruff-format
name: ruff format
entry: uv run ruff format
language: system
types: [python]
- id: ty-check
name: ty check
entry: uv run ty check deriva/
language: system
pass_filenames: false
types: [python]