music on atproto
plyr.fm
1fail_fast: false
2
3repos:
4 - repo: https://github.com/abravalheri/validate-pyproject
5 rev: v0.24.1
6 hooks:
7 - id: validate-pyproject
8 files: ^backend/pyproject\.toml$
9
10 - repo: https://github.com/pre-commit/mirrors-prettier
11 rev: v3.1.0
12 hooks:
13 - id: prettier
14 types_or: [yaml, json5]
15
16 - repo: https://github.com/astral-sh/ruff-pre-commit
17 rev: v0.12.1
18 hooks:
19 - id: ruff-check
20 args: [--fix, --exit-non-zero-on-fix]
21 - id: ruff-format
22
23 - repo: local
24 hooks:
25 - id: type-check
26 name: type check
27 entry: bash -c 'cd backend && uv run ty check'
28 language: system
29 types: [python]
30 pass_filenames: false
31
32 - id: svelte-check
33 name: svelte check
34 entry: bash -c 'cd frontend && bun run check'
35 language: system
36 files: ^frontend/
37 pass_filenames: false
38
39 - id: eslint
40 name: eslint
41 entry: bash -c 'cd frontend && bun run lint'
42 language: system
43 files: ^frontend/.*\.(ts|svelte)$
44 pass_filenames: false
45
46 - id: cargo-check-moderation
47 name: cargo check (moderation)
48 entry: bash -c 'cd moderation && cargo check --quiet'
49 language: system
50 files: ^moderation/.*\.rs$
51 pass_filenames: false
52
53 - id: cargo-check-transcoder
54 name: cargo check (transcoder)
55 entry: bash -c 'cd transcoder && cargo check --quiet'
56 language: system
57 files: ^transcoder/.*\.rs$
58 pass_filenames: false
59
60 - repo: https://github.com/pre-commit/pre-commit-hooks
61 rev: v6.0.0
62 hooks:
63 - id: no-commit-to-branch
64 name: prevent commits to main
65 args: [--branch, main]