소스 검색

Merge pull request #10432 from netbox-community/10431-pylance-is-no-longer-working-by-default-in-vscode

Add [tool.pyright] to pyproject.toml and fix #10431
Jonathan Senecal 3 년 전
부모
커밋
148c6a6c23
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      pyproject.toml

+ 9 - 0
pyproject.toml

@@ -11,3 +11,12 @@ profile = "black"
 
 [tool.pylint]
 max-line-length = 120
+
+[tool.pyright]
+include = ["netbox"]
+exclude = [
+    "**/node_modules",
+    "**/__pycache__",
+]
+reportMissingImports = true
+reportMissingTypeStubs = false