Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
entry: uv export
language: python
files: ^uv\.lock$
args: ["--frozen", "--output-file=requirements.txt"]
args: ["--frozen", "--output-file=requirements.txt", "--quiet"]
pass_filenames: false
additional_dependencies: []
minimum_pre_commit_version: "2.9.2"
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ To autoexport `uv.lock` to `requirements.txt`:
- id: uv-export
```

By default, this hook uses the ["quiet" output](https://docs.astral.sh/uv/reference/cli/#uv-export--quiet).

To export to an alternative file, modify the `args`:

```yaml
Expand All @@ -44,7 +46,7 @@ To export to an alternative file, modify the `args`:
rev: 0.8.4
hooks:
- id: uv-export
args: ["--frozen", "--output-file=requirements-custom.txt"]
args: ["--frozen", "--output-file=requirements-custom.txt", "--quiet"]
```

To compile your requirements via pre-commit, add the following to your `.pre-commit-config.yaml`:
Expand Down