onnxruntime/pyproject.toml
Justin Chu d2b25a7c1c
Reduce CI noise from Python lint (#12270)
Description: Reduce CI noise from Python lint

Motivation and Context

Disable "missing-docstring" in pylint. This is usually noisy in tests
Show only added lint messages only for pyright
2022-07-27 13:42:29 -07:00

33 lines
676 B
TOML

[tool.black]
line-length = 120
# extend-exclude needs to be a regular expression
extend-exclude = "cmake|onnxruntime/core/flatbuffers/"
target-version = ["py37", "py38", "py39", "py310"]
[tool.isort]
profile = "black"
line_length = 120
extend_skip_glob = [
"cmake/*",
"orttraining/*",
"onnxruntime/core/flatbuffers/*",
]
[tool.pydocstyle]
convention = "google"
[tool.pylint.messages_control]
disable = [
"format",
"line-too-long",
"import-error",
"no-name-in-module",
"no-member",
"too-few-public-methods",
"missing-docstring",
"fixme",
]
[tool.pyright]
exclude = ["onnxruntime/core/flatbuffers/*"]
reportMissingImports = false