-
Notifications
You must be signed in to change notification settings - Fork 12
/
.pre-commit-config.yaml
42 lines (41 loc) · 1.08 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
42
# File introduces automated checks triggered on git events
# to enable run `pip install pre-commit && pre-commit install`
repos:
- repo: local
hooks:
- id: yapf
name: yapf
language: python
entry: yapf
args: [-i, -vv]
types: [python]
- id: pylint
name: pylint
entry: pylint
language: python
types: [python]
args: [--rcfile=.pylintrc]
- id: clang-format
name: clang-format
language: system
entry: clang-format
args: [-i]
files: \.(c|cu|cc|cxx|cpp|h|cuh|hpp|hxx)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: check-docstring-first
- id: check-json
- id: check-added-large-files
- id: check-yaml
- id: debug-statements
- id: requirements-txt-fixer
- id: check-merge-conflict
- id: end-of-file-fixer
- id: sort-simple-yaml
- id: mixed-line-ending
args: [--fix=no]
- repo: meta
hooks:
- id: check-useless-excludes