diff --git a/.github/workflows/lint-check.yml b/.github/workflows/lint-check.yml index f85bb52f2..783094f63 100644 --- a/.github/workflows/lint-check.yml +++ b/.github/workflows/lint-check.yml @@ -23,6 +23,10 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v7 + - name: Check uv.lock is in sync + working-directory: backend + run: uv lock --check + - name: Install dependencies working-directory: backend run: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c79d53b51..b4e85962c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,6 +14,12 @@ repos: language: system types_or: [python] files: ^backend/ + - id: uv-lock-check + name: uv lock check + entry: bash -c 'cd backend && uv lock --check' + language: system + pass_filenames: false + files: ^backend/(pyproject\.toml|uv\.lock|packages/harness/pyproject\.toml)$ # Frontend: eslint + prettier (must run from frontend/ for node_modules resolution) - repo: local