-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
58 lines (51 loc) · 1.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
[tool.pytest.ini_options]
addopts = ["-rfEX", "--cov-report=", "--cov-append"]
python_files = ["test_*.py", "*_test.py"]
testpaths = ["tests"]
[tool.pylint.main]
recursive = true
enable = ["c-extension-no-member"]
evaluation = "10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)"
msg-template = "{msg_id}:{symbol} [{line:0>3d}:{column:0>2d}] {obj}: {msg}"
output-format = "colorized"
score = true
[tool.pylint.classes]
valid-metaclass-classmethod-first-arg = ["cls", "mcls", "kls"]
[tool.pylint.logging]
logging-format-style = "old" # using %s formatter for logging (performance-related)
[tool.pylint.miscellaneous]
notes = ["FIXME", "XXX", "TODO", "NOTE", "WARNING"]
[tool.black]
line-length = 88
exclude = '''
(
/(
\.eggs
| \.git
| \.tox
| \.venv
| \.build
| venv
| _build
| build
| bazel-*
| lib
| dist
)/
)
'''
[tool.isort]
profile = "black"
line_length = 88
length_sort = true
force_single_line = true
order_by_type = true
known_first_party = "bentoml"
force_alphabetical_sort_within_sections = true
skip_glob = ["test/*", "venv/*", "lib/*", "bazel-*"]
[tool.pyright]
pythonVersion = "3.10"
exclude = ["bazel-*"]
typeCheckingMode = "strict"
analysis.useLibraryCodeForTypes = true
enableTypeIgnoreComments = true