fail_fast: false repos: - repo: https://github.com/abravalheri/validate-pyproject rev: v0.24.1 hooks: - id: validate-pyproject files: ^backend/pyproject\.toml$ - repo: https://github.com/pre-commit/mirrors-prettier rev: v3.1.0 hooks: - id: prettier types_or: [yaml, json5] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.12.1 hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: local hooks: - id: type-check name: type check entry: bash -c 'cd backend && uv run ty check' language: system types: [python] pass_filenames: false - id: svelte-check name: svelte check entry: bash -c 'cd frontend && bun run check' language: system files: ^frontend/ pass_filenames: false - id: eslint name: eslint entry: bash -c 'cd frontend && bun run lint' language: system files: ^frontend/.*\.(ts|svelte)$ pass_filenames: false - id: cargo-check-moderation name: cargo check (moderation) entry: bash -c 'cd moderation && cargo check --quiet' language: system files: ^moderation/.*\.rs$ pass_filenames: false - id: cargo-check-transcoder name: cargo check (transcoder) entry: bash -c 'cd transcoder && cargo check --quiet' language: system files: ^transcoder/.*\.rs$ pass_filenames: false - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: no-commit-to-branch name: prevent commits to main args: [--branch, main]