.pre-commit-config.yaml 755 Bytes
Newer Older
1
repos:
2
3
4
5
6
7
8

  - repo: https://github.com/pycqa/isort
    rev: 5.10.1
    hooks:
      - id: isort
        name: sort all imports (python)

9
10
11
12
  - repo: https://github.com/pre-commit/mirrors-yapf
    rev: v0.32.0
    hooks:
    - id: yapf
13
      name: yapf formatter
14
      args: ['--style=.style.yapf', '--parallel', '--in-place']
15

16
  - repo: https://github.com/pre-commit/mirrors-clang-format
17
    rev: v13.0.1
18
19
    hooks:
    - id: clang-format
20
21
22
23
24
25
26
27
28
29
30
31
      name: clang formatter

  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.3.0
    hooks:
      - id: check-yaml
      - id: check-merge-conflict
      - id: check-case-conflict
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: mixed-line-ending
        args: ['--fix=lf']