Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 8 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down