-
Notifications
You must be signed in to change notification settings - Fork 53
/
.pre-commit-config.yaml
43 lines (43 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
43
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/*)|(notebooks/*)
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/*)|(notebooks/*)
args: [-w 120, -m 3, -tc, --project=pySOT]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 1.11.0
hooks:
- id: require-ascii
exclude: ^(notebooks/*)
- 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
exclude: ^(examples/makefile)