-
Notifications
You must be signed in to change notification settings - Fork 56
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.3 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
40
41
42
43
44
45
46
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: ^ipython_notebooks/*
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
exclude: 'apps'
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: mixed-line-ending
- id: fix-encoding-pragma
args: ['--remove']
- id: check-toml
- id: debug-statements
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.761
# hooks:
# - id: mypy
# - repo: https://github.com/saily/pre-commit-yapf-isort
# rev: 598ff67cc598dddee43bc611d0bf4a07f4b08619
# hooks:
# - id: yapf-isort
- repo: https://github.com/pre-commit/mirrors-yapf
rev: 'v0.30.0'
hooks:
- id: yapf
- repo: https://github.com/pre-commit/mirrors-isort
rev: 'v5.4.2'
hooks:
- id: isort
- repo: https://github.com/darcamo/version_check_hook.git
rev: v1.2
hooks:
- id: version_check
# # Currently darglint is slow and thus this might be commented out in the future
# - repo: https://github.com/terrencepreilly/darglint
# rev: master
# hooks:
# - id: darglint