Skip to content

Commit 8b24451

Browse files
committed
add pre-commit config to enfore code quality
1 parent 1134df0 commit 8b24451

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+
repos:
2+
3+
- repo: https://github.com/pycqa/isort
4+
rev: 5.8.0
5+
hooks:
6+
- id: isort
7+
name: isort (python)
8+
- id: isort
9+
name: isort (cython)
10+
types: [cython]
11+
- id: isort
12+
name: isort (pyi)
13+
types: [pyi]
14+
15+
- repo: https://github.com/psf/black
16+
rev: 20.8b1
17+
hooks:
18+
- id: black
19+
language_version: python3
20+
entry: black . --check
21+
22+
- repo: https://github.com/pre-commit/mirrors-mypy
23+
rev: v0.812
24+
hooks:
25+
- id: mypy
26+
27+
- repo: https://github.com/igorshubovych/markdownlint-cli
28+
rev: v0.27.1
29+
hooks:
30+
- id: markdownlint
31+
entry: markdownlint --ignore .github

0 commit comments

Comments
 (0)