-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
42 lines (42 loc) · 1.26 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: flake8
args: [--config=setup.cfg]
exclude: ^(examples/*)|(docs/*)
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-merge-conflict
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
- id: debug-statements
- repo: https://github.com/ambv/black
rev: 19.10b0
hooks:
- id: black
exclude: ^(build/*)|(docs/*)|(examples/*)
args: [-l 120, --target-version=py36]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
language_version: python3
exclude: ^(build/*)|(docs/*)|(examples/*)
args: [-w 120, -m 3, -tc, --project=linear_operator]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 1.11.0
hooks:
- id: require-ascii
exclude: ^(examples/LBFGS.py)|(examples/.*\.ipynb)
- id: script-must-have-extension
- id: forbid-binary
exclude: ^(examples/*)
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.7
hooks:
- id: forbid-crlf
- id: forbid-tabs