diff options
| author | 2025-10-21 17:04:58 -0400 | |
|---|---|---|
| committer | 2025-10-21 17:10:33 -0400 | |
| commit | 4f07de8ec0e7455cea06c2890243dcd44abc84fb (patch) | |
| tree | a0a21f67fd1a7fd91060757b7bca3062c900ece9 | |
| parent | Add python help channel to src command whitelist (diff) | |
chore: assert uv lock is locked in ci and pre-commit
see https://github.com/python-discord/bot/pull/3416 for reference
Diffstat (limited to '')
| -rw-r--r-- | .github/workflows/lint.yaml | 2 | ||||
| -rw-r--r-- | .pre-commit-config.yaml | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 9a782496..04a51b24 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -19,7 +19,7 @@ jobs: activate-environment: true - name: Install dependencies - run: uv sync --frozen + run: uv sync --locked # Attempt to run the bot. Setting `IN_CI` to true, so bot.run() is never called. # This is to catch import and cog setup errors that may appear in PRs, to avoid crash loops if merged. diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d51cbf3b..4149b19f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,10 +11,17 @@ repos: - repo: local hooks: + - id: uv-lock + name: uv lock + description: Checks the validity of the uv.lock file. + entry: uv lock + language: system + files: ^(uv\.lock|pyproject\.toml|uv\.toml)$ + pass_filenames: false - id: ruff name: ruff description: Run ruff linting - entry: uv run ruff check --force-exclude + entry: uv run --frozen ruff check --force-exclude language: system 'types_or': [python, pyi] require_serial: true |