Skip to content
Merged
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
26 changes: 20 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,29 @@ repos:
- id: prettier
types_or: [yaml, json5]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
- repo: local
hooks:
- id: ruff-format
name: Ruff Format
entry: uv run ruff
args: [format]
language: system
types: [python]
pass_filenames: false
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: local
hooks:
name: Ruff
entry: uv run ruff
args: ["check", "--fix", "--exit-non-zero-on-fix"]
types: [python]
language: system
pass_filenames: false
- id: pyright
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've also added the type checker.

name: pyright
entry: uv run pyright
args: [src]
language: system
types: [python]
pass_filenames: false
- id: uv-lock-check
name: Check uv.lock is up to date
entry: uv lock --check
Expand Down