added python analysis

This commit is contained in:
Christian Risi 2025-10-03 18:00:52 +02:00
parent d2a3dfe90f
commit 8a21cb1b73

59
.vscode/settings.json vendored
View File

@ -1,35 +1,34 @@
{ {
// 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
"terminal.integrated.cwd": "${workspaceFolder}",
// Start new integrated terminals at the project root // Make pytest run from the root without needing a pytest.ini
"terminal.integrated.cwd": "${workspaceFolder}", "python.testing.pytestEnabled": true,
"python.testing.cwd": "${workspaceFolder}",
// Make pytest run from the root without needing a pytest.ini "python.testing.pytestArgs": [
"python.testing.pytestEnabled": true, "src/test"
"python.testing.cwd": "${workspaceFolder}", ],
"python.testing.pytestArgs": ["src/test"], // Help Pylance resolve imports like `from src...` without red squiggles
"python.analysis.extraPaths": [
// Help Pylance resolve imports like `from src...` without red squiggles "${workspaceFolder}"
"python.analysis.extraPaths": ["${workspaceFolder}"], ],
// For linux
// For linux "terminal.integrated.env.linux": {
"terminal.integrated.env.linux": { "PYTHONPATH": "${workspaceFolder}"
"PYTHONPATH": "${workspaceFolder}" },
}, // For OSX
// For OSX "terminal.integrated.env.osx": {
"terminal.integrated.env.osx": { "PYTHONPATH": "${workspaceFolder}"
"PYTHONPATH": "${workspaceFolder}" },
}, // 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}",