|
| 1 | +{ |
| 2 | + "files.exclude": { |
| 3 | + "**/.git": true, |
| 4 | + "**/.svn": true, |
| 5 | + "**/.hg": true, |
| 6 | + "**/CVS": true, |
| 7 | + "**/.DS_Store": true, |
| 8 | + "**/Thumbs.db": true, |
| 9 | + "**/__pycache__" : true, |
| 10 | + "**/node_modules/" : true, |
| 11 | + "**/.mypy_cache" : true, |
| 12 | + "**/.metals" : true, |
| 13 | + "**/.pytest_cache" : true, |
| 14 | + "**/.ruff_cache" : true, |
| 15 | + ".venvs" : true, |
| 16 | + "**/*.egg-info" : true, |
| 17 | + }, |
| 18 | + "files.associations": { |
| 19 | + "*.log.*": "log" |
| 20 | + }, |
| 21 | + |
| 22 | + "editor.insertSpaces": true, |
| 23 | + "files.trimTrailingWhitespace": true, |
| 24 | + "[markdown]": { |
| 25 | + "files.trimTrailingWhitespace": false, |
| 26 | + }, |
| 27 | + "[python]" : { |
| 28 | + "editor.formatOnSave": true, |
| 29 | + "editor.defaultFormatter": "ms-python.black-formatter", |
| 30 | + }, |
| 31 | + |
| 32 | + // ==== Autocomplete issues ======== |
| 33 | + |
| 34 | + // Auto import |
| 35 | + "python.analysis.autoImportCompletions" : true, |
| 36 | + "python.analysis.packageIndexDepths" : [ |
| 37 | + { |
| 38 | + "name": "graph_ml", |
| 39 | + "depth": 4 |
| 40 | + }, |
| 41 | + ], |
| 42 | + |
| 43 | + // ==== Linting === |
| 44 | + // linter |
| 45 | + "flake8.enabled" : false, |
| 46 | + "isort.enabled" : false, |
| 47 | + "ruff.enable": true, |
| 48 | + "ruff.lint.args": [ |
| 49 | + "--config=pyproject.toml", |
| 50 | + "--extend-ignore=I", |
| 51 | + ], |
| 52 | + |
| 53 | + // mypy - typechecker |
| 54 | + "mypy-type-checker.importStrategy": "fromEnvironment", |
| 55 | + "mypy-type-checker.args": ["--config-file", "pyproject.toml"], |
| 56 | + |
| 57 | + // code formatter - black |
| 58 | + "black-formatter.importStrategy": "fromEnvironment", |
| 59 | + "black-formatter.args": ["--config", "${workspaceFolder}/pyproject.toml"], |
| 60 | + |
| 61 | + // ====== pytest ===== |
| 62 | + // See linting re passing config path. |
| 63 | + "python.testing.pytestEnabled": true, |
| 64 | + "python.testing.pytestArgs": ["-c", "${workspaceFolder}/pyproject.toml"], |
| 65 | + |
| 66 | + |
| 67 | + // === Integrated terminal ==== |
| 68 | + "terminal.integrated.profiles.linux": { |
| 69 | + // Ensure the default integrated terminal (bash) respects .bash_profile |
| 70 | + // https://superuser.com/questions/1209366/win10-vs-code-integrated-bash-not-loading-bash-profile |
| 71 | + "bash": { |
| 72 | + "path": "bash", |
| 73 | + "args": ["--init-file", "${workspaceFolder}/.vscode/start-terminal.sh"], |
| 74 | + }, |
| 75 | + }, |
| 76 | + |
| 77 | + "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python", |
| 78 | + "python.envFile": "${workspaceFolder}/.env", |
| 79 | + |
| 80 | + "github.copilot.enable": { |
| 81 | + "*": true, |
| 82 | + } |
| 83 | + |
| 84 | +} |
0 commit comments