mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 13:23:08 +00:00
abcfc67d8b
Also adds settings to .vscode/settings.json to use the correct formatter and type checking settings out of the box. VSCode uses pyright and health-check uses mypy. They do not always agree unfortunately, mypy is a little more lenient. Unfortunately pyright is hard to get working with our scripts that have no file extension. BUG=b:242605601 TEST=./tools/health-check Change-Id: Iaef4ac6f61613e7dda409d5e717102ea9adefe82 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3833699 Commit-Queue: Dennis Kempin <denniskempin@google.com> Tested-by: Dennis Kempin <denniskempin@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
11 lines
218 B
TOML
11 lines
218 B
TOML
[tool.black]
|
|
line-length = 100
|
|
|
|
[tool.pyright]
|
|
include = ["tools"]
|
|
exclude = ["target"]
|
|
ignore = ["infra", "tools/windows", "tools/contrib"]
|
|
pythonVersion = "3.9"
|
|
pythonPlatform = "Linux"
|
|
typeCheckingMode = "strict"
|
|
|