.pre-commit-config.yaml 717 Bytes
Newer Older
Aarni Koskela's avatar
Aarni Koskela committed
1
2
repos:
  - repo: https://github.com/astral-sh/ruff-pre-commit
3
    rev: v0.11.2
Aarni Koskela's avatar
Aarni Koskela committed
4
5
6
7
    hooks:
      - id: ruff
        args:
          - --fix
8
      - id: ruff-format
9
  - repo: https://github.com/pre-commit/pre-commit-hooks
10
    rev: v5.0.0
11
12
13
14
15
16
17
18
19
    hooks:
      - id: check-merge-conflict
      - id: check-yaml
      - id: end-of-file-fixer
      - id: fix-byte-order-marker
      - id: trailing-whitespace
      - id: mixed-line-ending
        args:
          - --fix=lf
20
  - repo: https://github.com/crate-ci/typos
21
    rev: v1.26.0
22
23
    hooks:
      - id: typos
Matthew Douglas's avatar
Matthew Douglas committed
24
25
26
27
28
29
  - repo: https://github.com/pre-commit/mirrors-clang-format
    rev: v20.1.6
    hooks:
    - id: clang-format
      types_or: [c++, c, cuda]
      files: ^csrc/