-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
41 lines (41 loc) · 1.13 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
37
38
39
40
41
---
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: no-commit-to-branch
args: [--branch, main]
- repo: https://github.com/pocc/pre-commit-hooks
rev: 9a9bbc00895bbdb7670231c2565d4f1309c42905 # v1.3.5
hooks:
- id: clang-format
args: [-i]
- repo: https://github.com/psf/black
rev: ec91a2be3c44d88e1a3960a4937ad6ed3b63464e # 23.12.1
hooks:
- id: black
- repo: https://github.com/adrienverge/yamllint
rev: 81e9f98ffd059efe8aa9c1b1a42e5cce61b640c6 # v1.35.1
hooks:
- id: yamllint
- repo: local
hooks:
- id: pylint
name: pylint
entry: python -m pylint
language: system
types: [python]
require_serial: true
- repo: local
hooks:
- id: clang-tidy
name: clang-tidy
entry: rad
args: [lint, --clang-tidy]
language: python
files: \.(c|cc|cpp|cxx|h|hh|hpp|hxx|)$
require_serial: true