Skip to content

Commit ce2ec1f

Browse files
committed
Add pre-commit hooks.
1 parent cbab671 commit ce2ec1f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.pre-commit-config.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.4.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
- repo: https://github.com/psf/black
12+
rev: 23.1.0
13+
hooks:
14+
- id: black
15+
args: [--config, pyproject.toml]
16+
# - repo: https://github.com/pycqa/isort
17+
# rev: 5.11.2
18+
# hooks:
19+
# - id: isort
20+
# name: isort (python)
21+
- repo: https://github.com/econchick/interrogate
22+
rev: 1.5.0
23+
hooks:
24+
- id: interrogate
25+
args: [-c, pyproject.toml]
26+
- repo: https://github.com/terrencepreilly/darglint
27+
rev: v1.8.1
28+
hooks:
29+
- id: darglint
30+
args: [-v 2] # this config makes the error messages a bit less cryptic.
31+
- repo: https://github.com/PyCQA/flake8
32+
rev: 6.0.0
33+
hooks:
34+
- id: flake8
35+
args: [--exclude, nbconvert_config.py]

0 commit comments

Comments
 (0)