39 lines
947 B
YAML
39 lines
947 B
YAML
repos:
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.14.13
|
|
hooks:
|
|
- id: ruff-check
|
|
types_or: [ python, pyi ]
|
|
args: [ --fix ]
|
|
- id: ruff-format
|
|
types_or: [ python, pyi ]
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: ty
|
|
name: ty check
|
|
entry: uvx ty check
|
|
language: python
|
|
types_or: [ python, pyi ]
|
|
|
|
- id: frontend-format
|
|
name: frontend format
|
|
entry: bash -c 'cd frontend && bun format'
|
|
language: system
|
|
files: ^frontend/
|
|
pass_filenames: false
|
|
|
|
- id: frontend-lint
|
|
name: frontend lint
|
|
entry: bash -c 'cd frontend && bun lint'
|
|
language: system
|
|
files: ^frontend/
|
|
pass_filenames: false
|
|
|
|
- id: frontend-check
|
|
name: frontend check
|
|
entry: bash -c 'cd frontend && bun check'
|
|
language: system
|
|
files: ^frontend/
|
|
pass_filenames: false
|