-
Notifications
You must be signed in to change notification settings - Fork 604
/
.pre-commit-config.yaml
39 lines (39 loc) · 1.17 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
exclude: .*\.(ipynb)$
- id: trailing-whitespace
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
- id: nbstripout
files: ".ipynb"
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
additional_dependencies: ['toml']
- repo: https://github.com/ambv/black
rev: 22.10.0
hooks:
- id: black
# TODO: re-enable once you figure out how to tell it to ignore darglint noqas
#- repo: https://github.com/asottile/yesqa
# rev: v1.4.0
# hooks:
# - id: yesqa
# TODO: re-enable darglint but it currently makes flake8 un-reasonably slow
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: ['flake8-bugbear==22.10.27', 'flake8-docstrings==1.6.0'] # , 'darglint==1.8.1']
# TODO: re-enable mypy (need to run as its own step in CI since it requires deps)
#- repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.991
# hooks:
# - id: mypy