-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
72 lines (67 loc) · 1.59 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
[tool.mypy]
follow_imports = "slient"
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
# Allow bare generics like np.ndarray
disallow_any_generics = false
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.mypy.overrides]]
module = [
'onnx.onnx_data_pb',
'onnx.onnx_data_pb2',
'onnx.onnx_pb',
'onnx.onnx_pb2',
'onnx.onnx_ml_pb2',
'onnx.onnx_ml_pb2',
'onnx.onnx_operators_pb',
'onnx.onnx_operators_ml_pb2',
]
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.message_control]
# This list is for vscode. Add new disables in pyproject_pylint.toml for lintrunner and CI.
# Exclude patterns should be modified in .lintrunner.toml
disable = [
"format",
"import-error",
"line-too-long",
"no-name-in-module",
"useless-return",
]