-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
98 lines (85 loc) · 2.27 KB
/
pyproject.toml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# 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.
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
[tool.pylint.MASTER]
extension-pkg-whitelist = "pydantic"
[tool.pylint.FORMAT]
max-line-length = 120
disable = [
"E0401", # import-error
"C0114", # missing-module-docstring
"C0115", # missing-class-docstring
"C0116", # missing-function-docstring
"C0321", # multiple-statements
"W1202", # logging-format-interpolation
"W1203", # logging-fstring-interpolation
"W0511", # fixme_ (and todo_)
"R0913", # too-many-arguments
"R0903", # too-few-public-methods
"R0901", # too-many-ancestors
"C0236", # bad-whitespace - will be deprecated soon
"C0326", # bad-continuation - will be deprecated soon
"no-member", # TEMPORARY, pylint 2.7.2 throws lots of false positives
"unsubscriptable-object", # TEMPORARY, pylint 2.7.4 throws false positives with Generic ABCs
]
[tool.pylint.BASIC]
good-names = [
"T",
"T_co",
"S",
"F",
"df",
"i",
"j",
"db",
"ax",
"qa",
"s3",
"x",
"y",
"xs",
"ts",
"x1",
"x2",
"t",
"a",
"b",
"c",
"d",
"f",
"n",
"on",
"by",
"u",
"r",
"s",
"m",
"dd",
"r2",
]
[tool.pylint.SIMILARITIES]
# Min similarity lines=15, sometimes the (overloaded) signatures can be more than 6 lines long. 15 should be enough.
min-similarity-lines = 10
ignore-comments = "yes"
ignore-docstrings = "yes"
ignore-imports = "yes"
[tool.pytest.ini_options]
addopts = "--cov=hola --doctest-modules -vv --durations=3 --cache-clear --cov-fail-under=65"
[tool.black]
line-length = 120
[tool.bandit]
skips = ["B101"]