48 lines
1.3 KiB
JSON
48 lines
1.3 KiB
JSON
{
|
|
"python.defaultInterpreterPath": "/local_scratch/lfainsin/.conda/envs/sap/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": "sap",
|
|
},
|
|
"args": [
|
|
"-c",
|
|
"source ~/.bashrc && conda_init && conda activate $CONDAENV && export PS1='($CONDAENV)[\\u@\\h \\W]\\$ ' && bash"
|
|
],
|
|
}
|
|
},
|
|
"terminal.integrated.env.linux": {
|
|
"SLURM_JOB_ID": null,
|
|
}
|
|
}
|