forked from 567-labs/instructor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
28 lines (26 loc) · 824 Bytes
/
.pre-commit-config.yaml
File metadata and controls
28 lines (26 loc) · 824 Bytes
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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.9 # Ruff version
hooks:
- id: ruff # Run the linter.
name: Run Linter Check (Ruff)
args: [ --fix, --unsafe-fixes ]
files: ^(instructor|tests|examples)/
- id: ruff-format # Run the formatter.
name: Run Formatter (Ruff)
- repo: local
hooks:
- id: uv-lock-check
name: Check uv.lock is up-to-date
entry: uv
args: [lock, --check]
language: system
files: ^(pyproject\.toml|uv\.lock)$
pass_filenames: false
- id: uv-sync-check
name: Verify dependencies can be installed
entry: uv
args: [sync, --check]
language: system
files: ^(pyproject\.toml|uv\.lock)$
pass_filenames: false