Add uv-pre-commit hooks

- Added hooks for uv-pre-commit to ensure the lockfile is up-to-date and autoexport uv.lock to requirements.txt.
- Added "autoexport" to the cSpell words in the VSCode settings for spell checking.
This commit is contained in:
2025-06-07 05:53:29 +02:00
parent aeee40820d
commit 8095e54464
3 changed files with 352 additions and 13 deletions

View File

@ -1,4 +1,11 @@
repos:
# Ensure the lockfile is up-to-date and autoexport uv.lock to requirements.txt
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.7.12
hooks:
- id: uv-lock
- id: uv-export
# Automatically add trailing commas to calls and literals.
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.2.0