Skip to content

Commit

Permalink
pw_ide: Improve Python support
Browse files Browse the repository at this point in the history
Change-Id: I11699e915e1dd959d863674ef1693b2e82c221e5
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/139911
Commit-Queue: Chad Norvell <[email protected]>
Reviewed-by: Carlos Chinchilla <[email protected]>
  • Loading branch information
chadnorvell authored and CQ Bot Account committed Apr 20, 2023
1 parent 56cb3bb commit 271a811
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pw_ide/py/pw_ide/vscode.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,18 @@ def _local_python_settings() -> Dict[str, Any]:
"[cpp]": OrderedDict(
{"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"}
),
"python.analysis.diagnosticSeverityOverrides": OrderedDict(
# Due to our project structure, the linter spuriously thinks we're
# shadowing system modules any time we import them. This disables
# that check.
{"reportShadowedImports": "none"}
),
# The "strict" mode is much more strict than what we currently enforce.
"python.analysis.typeCheckingMode": "basic",
"python.formatting.provider": "yapf",
"python.linting.pylintEnabled": True,
"python.linting.mypyEnabled": True,
"python.testing.unittestEnabled": True,
"[python]": OrderedDict({"editor.tabSize": 4}),
"typescript.tsc.autoDetect": "off",
"[gn]": OrderedDict({"editor.defaultFormatter": "msedge-dev.gnls"}),
Expand Down

0 comments on commit 271a811

Please sign in to comment.