-
Notifications
You must be signed in to change notification settings - Fork 9
/
.pre-commit-config.yaml
53 lines (44 loc) · 1.18 KB
/
.pre-commit-config.yaml
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
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
# Invalid file checks
- id: check-yaml
- id: check-added-large-files
- id: check-symlinks
- id: check-toml
# File quality checks
- id: end-of-file-fixer
- id: trailing-whitespace
# Git checks
- id: check-merge-conflict
# Python checks
- id: name-tests-test
# JSON files
- id: pretty-format-json
args: [--autofix]
- id: check-json
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
args: [--skip, "uv.lock,*.json,*,jsonl"]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.9
hooks:
# Run the linter.
- id: ruff
args: [--fix, --ignore, UP007]
exclude: samples
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.5.5
hooks:
# Update the uv lockfile
- id: uv-lock