Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit fecdeed

Browse files
committed
Move pyright settings to pyproject
1 parent 2a565bd commit fecdeed

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.vscode/settings.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"python.envFile": "${workspaceFolder}/.env",
33
"python.formatting.yapfPath": "${workspaceFolder}/.venv/bin/yapf",
4-
"python.analysis.typeCheckingMode": "strict",
54
"python.languageServer": "Pylance",
6-
"python.analysis.diagnosticSeverityOverrides": {
7-
"reportUnknownMemberType": "none",
8-
},
95
"python.formatting.provider": "yapf",
106
"[python]": {
117
"editor.insertSpaces": true,
@@ -42,4 +38,7 @@
4238
}
4339
]
4440
},
41+
"python.linting.enabled": true,
42+
"python.linting.pylintEnabled": true,
43+
"python.linting.mypyEnabled": true
4544
}

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,17 @@ disable = "missing-docstring\n"
9494
[tool.pylint.IMPORTS]
9595
allow-any-import-level = ""
9696
allow-wildcard-with-all = "no"
97+
98+
[tool.pyright]
99+
pythonVersion = "3.9"
100+
stubPath = "./.typings"
101+
venvPath = "./.venv"
102+
pythonPlatform = "All"
103+
typeCheckingMode = "strict"
104+
include = ["./twitter_video_tools"]
105+
exclude = ["**/node_modules", "**/__pycache__"]
106+
defineConstant = { DEBUG = true }
107+
useLibraryCodeForTypes = true
108+
verboseOutput = false
109+
reportMissingTypeStubs = true # even for 3rd party modules, it's required to create type stubs
110+
reportUnknownMemberType = false # for no typed modules

0 commit comments

Comments
 (0)