diff options
author | 2025-03-02 15:53:14 +0000 | |
---|---|---|
committer | 2025-03-02 16:15:25 +0000 | |
commit | 054c9308faac02c4a46b5d63a850a8ab5e1333de (patch) | |
tree | f81b396f6ccaa129f3b1e5c128d3c7042e8b8339 | |
parent | Migrate to uv for dependency management (diff) |
Add uv lock file check in pre-commit hooks
-rw-r--r-- | .pre-commit-config.yaml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 85f9cd4..4d7c204 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,10 +11,19 @@ repos: - repo: local hooks: + - id: uv-check + name: uv lock check + description: Checks the validity of the uv.lock file. + entry: uv lock --check + language: system + files: pyproject.toml + pass_filenames: false + require_serial: true + - id: ruff-lint name: ruff linting description: Run ruff linting - entry: poetry run ruff check --force-exclude + entry: uv run ruff check --force-exclude language: system 'types_or': [python, pyi] require_serial: true @@ -23,7 +32,7 @@ repos: - id: ruff-format name: ruff formatting description: Run ruff formatting - entry: poetry run ruff format --force-exclude + entry: uv run ruff format --force-exclude language: system 'types_or': [python, pyi] require_serial: true |