Skip to content

Commit f858903

Browse files
committed
Add pre-commit config
1 parent 6accd5f commit f858903

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.pre-commit-config.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
ci:
2+
autofix_prs: false
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v4.0.1
7+
hooks:
8+
- id: check-case-conflict
9+
- id: end-of-file-fixer
10+
- id: trailing-whitespace
11+
12+
- repo: https://github.com/pre-commit/mirrors-clang-format
13+
rev: v13.0.0
14+
hooks:
15+
- id: clang-format
16+
17+
- repo: https://github.com/psf/black
18+
rev: 21.12b0
19+
hooks:
20+
- id: black
21+
22+
- repo: https://github.com/PyCQA/pydocstyle
23+
rev: 6.1.1
24+
hooks:
25+
- id: pydocstyle
26+
args: [--convention=numpy]
27+
28+
- repo: https://github.com/PyCQA/isort
29+
rev: 5.10.1
30+
hooks:
31+
- id: isort

0 commit comments

Comments
 (0)