aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.pre-commit-config.yaml
blob: 12c05dfb26c47d342fe63483b420b31ecf911c7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v6.0.0
    hooks:
      - id: check-ast
      - id: check-case-conflict
      - id: check-json
      - id: check-toml
      - id: check-yaml
      - id: fix-byte-order-marker

  - 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: oxlint
        name: oxlint (svelte/ts/js)
        entry: pnpm --dir ui run lint:fix
        language: system
        files: ^ui/
        pass_filenames: false

      - id: oxfmt
        name: oxfmt (format)
        entry: pnpm --dir ui run format
        language: system
        files: ^ui/
        pass_filenames: false