-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-hooks.yaml
40 lines (40 loc) · 1.18 KB
/
.pre-commit-hooks.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
- id: pip-compile
name: pip-compile
description: "Automatically run 'uv pip compile' on your requirements"
entry: uv pip compile
language: python
files: ^requirements\.(in|txt)$
args: []
pass_filenames: false
additional_dependencies: []
minimum_pre_commit_version: "2.9.2"
- id: uv-lock
name: uv-lock
description: "Automatically run 'uv lock' on your project dependencies"
entry: uv lock
language: python
files: ^(uv\.lock|pyproject\.toml|uv\.toml)$
args: []
pass_filenames: false
additional_dependencies: []
minimum_pre_commit_version: "2.9.2"
- id: uv-export
name: uv-export
description: "Automatically run 'uv export' on your project dependencies"
entry: uv export
language: python
files: ^uv\.lock$
args: ["--frozen", "--output-file=requirements.txt"]
pass_filenames: false
additional_dependencies: []
minimum_pre_commit_version: "2.9.2"
- id: uv-sync
name: uv-sync
description: "Automatically run 'uv sync' on your repository after a checkout, pull or rebase"
entry: uv sync
args: ["--locked"]
language: python
always_run: true
pass_filenames: false
stages: [post-checkout, post-merge, post-rewrite]
minimum_pre_commit_version: "2.9.2"