aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.pre-commit-config.yaml
blob: d149a19195eccbc857b0711adfd692bf8a885ef7 (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
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
      - id: check-ast
      - id: check-case-conflict
      - id: check-json
        exclude: ^ui/tsconfig.*\.json$
      - id: check-toml
      - id: check-yaml
      - id: fix-byte-order-marker

  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.1.6
    hooks:
      - id: ruff
        args: [ --fix ]
      - id: ruff-format

  - repo: https://github.com/doublify/pre-commit-rust
    rev: v1.0
    hooks:
      - id: fmt
        args: ["--manifest-path", "src-tauri/Cargo.toml"]
      - id: clippy
        args: ["--manifest-path", "src-tauri/Cargo.toml", "--", "-D", "warnings"]