-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
39 lines (39 loc) · 1.1 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
repos:
- repo: https://github.com/python/black
rev: 20.8b1
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies: [flake8-docstrings]
- repo: https://github.com/PyCQA/isort
rev: 5.6.4
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/kynan/nbstripout
rev: master
hooks:
- id: nbstripout
- repo: https://github.com/cpplint/cpplint
rev: develop # change to a #version once they update their package
hooks:
- id: cpplint
args: [
"--verbose=3",
"--counting=toplevel",
"--filter=-legal/copyright",
"--linelength=80"
]
- repo: local
hooks:
# FYI https://gitlab.com/daverona/pre-commit/cpp
- id: clang-format
name: clang-format
description: Run `clang-format` against C/C++ header and source files
language: python
files: \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$
entry: clang-format
args: ["-i", "-style=Chromium"]