🧑‍💻 add .vscode settings.json

This commit is contained in:
Laurent FAINSIN 2023-05-26 14:54:28 +02:00
parent 6622b354d9
commit 79c35e453a

48
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,48 @@
{
"python.defaultInterpreterPath": "/local_scratch/lfainsin/.conda/envs/pyg/bin/python", // required for python ide tools
"python.terminal.activateEnvironment": false, // or else terminal gets bugged
// good pratice settings
"editor.formatOnSave": true,
"python.linting.enabled": true,
"python.linting.lintOnSave": true,
"python.linting.mypyEnabled": true,
"files.insertFinalNewline": true,
"python.analysis.typeCheckingMode": "basic", // get ready to be annoyed
"python.formatting.provider": "black",
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true // isort
}
},
"files.exclude": {
// defaults
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
// annoying
"**/__pycache__": true,
"**/.mypy_cache": true,
"**/.ruff_cache": true,
"**/*.tmp": true,
},
"terminal.integrated.profiles.linux": {
"python": {
"path": "bash",
"icon": "rocket",
"env": {
"CONDAENV": "pyg",
},
"args": [
"-c",
"source ~/.bashrc && conda_init && conda activate $CONDAENV && export PS1='($CONDAENV)[\\u@\\h \\W]\\$ ' && bash"
],
}
},
"terminal.integrated.env.linux": {
"PYTHONPATH": "${workspaceFolder}/src/",
"SLURM_JOB_ID": null,
}
}