-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
36 lines (36 loc) · 1.04 KB
/
.pre-commit-config.yaml
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
36
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: '^(src/llvm-headers/.*|.*\.pyi)$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: check-executables-have-shebangs
- id: check-yaml
args: ["--allow-multiple-documents"]
- id: check-merge-conflict
- id: debug-statements
- id: end-of-file-fixer
- id: flake8
- id: mixed-line-ending
- id: requirements-txt-fixer
- id: trailing-whitespace
args: ["--chars"," \t"]
- repo: https://github.com/iconmaster5326/cmake-format-pre-commit-hook
rev: master
hooks:
- id: cmake-format
- repo: https://github.com/doublify/pre-commit-clang-format
rev: master
hooks:
- id: clang-format
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: ["--line-length", "79"]
- repo: https://github.com/timothycrosley/isort
rev: 4.3.19
hooks:
- id: isort
files: \.py$