added python analysis
This commit is contained in:
parent
d2a3dfe90f
commit
8a21cb1b73
17
.vscode/settings.json
vendored
17
.vscode/settings.json
vendored
@ -1,21 +1,20 @@
|
|||||||
{
|
{
|
||||||
// Always treat the project root as the working dir for Jupyter
|
// Always treat the project root as the working dir for Jupyter
|
||||||
"jupyter.notebookFileRoot": "${workspaceFolder}",
|
"jupyter.notebookFileRoot": "${workspaceFolder}",
|
||||||
|
|
||||||
// When you click "Run Python File in Terminal", DON'T cd into the file's folder
|
// When you click "Run Python File in Terminal", DON'T cd into the file's folder
|
||||||
"python.terminal.executeInFileDir": false,
|
"python.terminal.executeInFileDir": false,
|
||||||
|
|
||||||
// Start new integrated terminals at the project root
|
// Start new integrated terminals at the project root
|
||||||
"terminal.integrated.cwd": "${workspaceFolder}",
|
"terminal.integrated.cwd": "${workspaceFolder}",
|
||||||
|
|
||||||
// Make pytest run from the root without needing a pytest.ini
|
// Make pytest run from the root without needing a pytest.ini
|
||||||
"python.testing.pytestEnabled": true,
|
"python.testing.pytestEnabled": true,
|
||||||
"python.testing.cwd": "${workspaceFolder}",
|
"python.testing.cwd": "${workspaceFolder}",
|
||||||
"python.testing.pytestArgs": ["src/test"],
|
"python.testing.pytestArgs": [
|
||||||
|
"src/test"
|
||||||
|
],
|
||||||
// Help Pylance resolve imports like `from src...` without red squiggles
|
// Help Pylance resolve imports like `from src...` without red squiggles
|
||||||
"python.analysis.extraPaths": ["${workspaceFolder}"],
|
"python.analysis.extraPaths": [
|
||||||
|
"${workspaceFolder}"
|
||||||
|
],
|
||||||
// For linux
|
// For linux
|
||||||
"terminal.integrated.env.linux": {
|
"terminal.integrated.env.linux": {
|
||||||
"PYTHONPATH": "${workspaceFolder}"
|
"PYTHONPATH": "${workspaceFolder}"
|
||||||
@ -27,9 +26,9 @@
|
|||||||
// For Windows
|
// For Windows
|
||||||
"terminal.integrated.env.windows": {
|
"terminal.integrated.env.windows": {
|
||||||
"PYTHONPATH": "${workspaceFolder}"
|
"PYTHONPATH": "${workspaceFolder}"
|
||||||
}
|
},
|
||||||
|
"python.analysis.typeCheckingMode": "standard"
|
||||||
}
|
}
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// // Always treat the project root as the working dir for Jupyter
|
// // Always treat the project root as the working dir for Jupyter
|
||||||
// "jupyter.notebookFileRoot": "${workspaceFolder}",
|
// "jupyter.notebookFileRoot": "${workspaceFolder}",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user