-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
78 lines (71 loc) · 2.55 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright 2021 BlackRock, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
exclude: (^asv_bench|setup.py|requirements-dev.txt)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: check-ast
description: Simply check whether files parse as valid python
- id: check-case-conflict
description: Check for files that would conflict in case-insensitive filesystems
- id: check-docstring-first
description: Checks for a common error of placing code before the docstring.
- id: check-merge-conflict
description: Check for files that contain merge conflict strings
- id: check-yaml
description: Attempts to load all yaml files to verify syntax
- id: debug-statements
description: Check for debugger imports and py37+ breakpoint() calls in python source
- id: end-of-file-fixer
description: Makes sure files end in a newline and only a newline
- id: trailing-whitespace
description: Trims trailing whitespace
- id: mixed-line-ending
description: Replaces or checks mixed line ending
- repo: https://github.com/myint/docformatter
rev: ''
hooks:
- id: docformatter
args: [ "--wrap-summaries=120", "--wrap-descriptions=120" ]
- repo: https://github.com/pre-commit/mirrors-isort
rev: ''
hooks:
- id: isort
args: ["--settings-path pyproject.toml"]
- repo: https://github.com/ikamensh/flynt
rev: ''
hooks:
- id: flynt
- repo: https://github.com/psf/black
rev: ''
hooks:
- id: black
args: ["-l 120"]
- repo: https://github.com/pycqa/pylint
rev: ''
hooks:
- id: pylint
args: ["--disable=import-error"]
exclude: (^docs/|^scripts)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: ''
hooks:
- id: mypy
entry: mypy .
pass_filenames: false
additional_dependencies:
- pydantic
- numpy
- returns
- types-click
- types-pyyaml
- types-pkg_resources