diff options
| author | 2025-10-21 16:31:23 -0400 | |
|---|---|---|
| committer | 2025-10-21 21:31:23 +0100 | |
| commit | d0a6a7aa56bc5f066aa376ab2d9ff665ae2226fa (patch) | |
| tree | 0ec8b96bed93ed3620dadeacdb9f99abd75a6f88 | |
| parent | Relock uv.lock (diff) | |
chore: add pre-commit hook for checking uv is locked (#3416)
| -rw-r--r-- | .github/workflows/lint-test.yml | 2 | ||||
| -rw-r--r-- | .pre-commit-config.yaml | 9 | 
2 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index f651b77e6..0089ca3bf 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -27,7 +27,7 @@ jobs:            activate-environment: true        - name: Install dependencies -        run: uv sync --frozen +        run: uv sync --locked        - name: Run pre-commit hooks          run: SKIP=ruff pre-commit run --all-files diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 01eb141ec..e19d8b84c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,10 +10,17 @@ repos:          args: [--markdown-linebreak-ext=md]    - repo: local      hooks: +    - 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)$ +      pass_filenames: false      - id: ruff        name: ruff        description: Run ruff linting -      entry: uv run --frozen ruff check --force-exclude +      entry: uv run --locked ruff check --force-exclude        language: system        'types_or': [python, pyi]        require_serial: true  |