Skip to content

Commit 8e933be

Browse files
author
Diptorup Deb
committed
Add pre-commit hooks.
1 parent f459686 commit 8e933be

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.pre-commit-config.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,33 @@ repos:
77
- id: bandit
88
pass_filenames: false
99
args: ["-r", "dpctl", "-lll"]
10+
- repo: https://github.com/pre-commit/pre-commit-hooks
11+
rev: v2.3.0
12+
hooks:
13+
- id: check-yaml
14+
- id: end-of-file-fixer
15+
- id: trailing-whitespace
16+
- repo: https://github.com/psf/black
17+
rev: 20.8b1
18+
hooks:
19+
- id: black
20+
- repo: https://github.com/pycqa/isort
21+
rev: 5.8.0
22+
hooks:
23+
- id: isort
24+
name: isort (python)
25+
- id: isort
26+
name: isort (cython)
27+
types: [cython]
28+
- id: isort
29+
name: isort (pyi)
30+
types: [pyi]
31+
- repo: https://gitlab.com/pycqa/flake8
32+
rev: 3.9.1
33+
hooks:
34+
- id: flake8
35+
- repo: https://github.com/pocc/pre-commit-hooks
36+
rev: v1.1.1
37+
hooks:
38+
- id: clang-format
39+
- id: cppcheck

0 commit comments

Comments
 (0)