Skip to content

Commit c39ccc0

Browse files
committed
add mypy & isort as pre-commit hooks
1 parent 2cc1abe commit c39ccc0

File tree

1 file changed

+27
-12
lines changed

1 file changed

+27
-12
lines changed

.pre-commit-config.yaml

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,31 @@
1+
fail_fast: true
2+
default_stages: [commit]
3+
exclude: ".git"
4+
15
repos:
2-
- repo: https://github.com/pausan/cblack
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v2.3.0
8+
hooks:
9+
- id: trailing-whitespace
10+
- id: end-of-file-fixer
11+
- id: check-yaml
12+
- id: check-added-large-files
13+
- id: check-merge-conflict
14+
15+
- repo: https://github.com/pausan/cblack
316
rev: release-22.3.0
417
hooks:
5-
- id: cblack
6-
name: cblack
7-
description: "Black: The uncompromising Python code formatter - 2 space indent fork"
8-
entry: cblack . -l 100
9-
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v2.3.0
18+
- id: cblack
19+
name: cblack
20+
description: "Black: The uncompromising Python code formatter - 2 space indent fork"
21+
entry: cblack . -l 100
22+
23+
- repo: https://github.com/psf/black
24+
rev: 23.1.0
25+
hooks:
26+
- id: black
27+
28+
- repo: https://github.com/PyCQA/isort
29+
rev: 5.12.0
1130
hooks:
12-
- id: trailing-whitespace
13-
- id: end-of-file-fixer
14-
- id: check-yaml
15-
- id: check-added-large-files
16-
- id: check-merge-conflict
31+
- id: isort

0 commit comments

Comments
 (0)