forked from onnx/onnx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
58 lines (54 loc) · 1.25 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.mypy]
strict_optional = true
warn_return_any = true
warn_no_return = true
# TODO warn_unused_ignores = true
warn_redundant_casts = true
warn_incomplete_stub = true
# TODO disallow_untyped_calls = true
check_untyped_defs = true
disallow_any_generics = true
no_implicit_optional = true
# TODO disallow_incomplete_defs = true
# TODO disallow_subclassing_any = true
warn_unused_configs = true
show_error_codes = true
show_column_numbers = true
ignore_missing_imports = true
exclude = [
'\.git',
'__pycache__',
'^build',
'^third_party',
'_pb2.py$',
'\.cache',
'\.eggs',
'\.setuptools-cmake-build',
'venv/',
]
[[tool.mypy.overrides]]
module = ['setup']
ignore_errors = true
[tool.black]
# extend-exclude needs to be a regular expression
extend-exclude = "third_party/|venv/"
target-version = ["py37", "py38", "py39", "py310"]
[tool.isort]
profile = "black"
extend_skip_glob = [
"third_party/*",
"*_pb2*",
".setuptools-cmake-build/*",
"venv",
]
[tool.pylint.'MESSAGES CONTROL']
disable = [
"missing-docstring",
"import-error",
"no-member",
"line-too-long",
"fixme",
"too-few-public-methods",
"no-name-in-module",
"invalid-name", # TODO: Add naming guidance and enable this check.
]