|
1 | 1 | { |
2 | | - "python.linting.enabled": true, |
3 | | - "python.linting.flake8Enabled": true, |
4 | | - "python.linting.flake8Args": [], |
5 | | - "python.linting.pylintArgs": [], |
6 | | - "python.linting.pylintUseMinimalCheckers": false, |
7 | | - "python.formatting.provider": "black", |
8 | | - "python.formatting.blackArgs": [], |
9 | | - "editor.formatOnSave": true, |
10 | | - "python.sortImports.args": [ |
11 | | - "--recursive", |
12 | | - ], |
13 | | - "[python]": { |
14 | | - "editor.codeActionsOnSave": { |
15 | | - "source.organizeImports": true |
| 2 | + // editor & autoformatter settings |
| 3 | + "editor.formatOnSave": true, |
| 4 | + "editor.trimAutoWhitespace": true, |
| 5 | + "files.trimTrailingWhitespace": true, |
| 6 | + "prettier.enable": true, |
| 7 | + |
| 8 | + // python - black |
| 9 | + "python.formatting.provider": "black", |
| 10 | + "python.formatting.blackArgs": [], |
| 11 | + |
| 12 | + // python - other |
| 13 | + "python.languageServer": "Pylance", |
| 14 | + |
| 15 | + // python - linting & static analysis |
| 16 | + "python.analysis.extraPaths": ["solutions"], |
| 17 | + "python.analysis.typeCheckingMode": "basic", |
| 18 | + "python.linting.enabled": true, |
| 19 | + "python.linting.flake8Enabled": true, |
| 20 | + "python.linting.flake8Args": [], |
| 21 | + "python.linting.pylintEnabled": true, |
| 22 | + "python.linting.pylintArgs": [], |
| 23 | + |
| 24 | + // Python files only |
| 25 | + "[python]": { |
| 26 | + // isort on save |
| 27 | + "editor.codeActionsOnSave": {"source.organizeImports": true}, |
| 28 | + // Stop the 'Black does not support "Format Selection"' message every |
| 29 | + // time you paste something (https://stackoverflow.com/a/63612401/3279076) |
| 30 | + "editor.formatOnPaste": false |
| 31 | + }, |
| 32 | + |
| 33 | + // python - pytest (https://code.visualstudio.com/docs/python/testing) |
| 34 | + "python.testing.unittestEnabled": false, |
| 35 | + "python.testing.pytestEnabled": true, |
| 36 | + "python.testing.pytestArgs": ["tests"], |
| 37 | + |
| 38 | + // git |
| 39 | + "git.enabled": true, |
| 40 | + |
| 41 | + // file associations |
| 42 | + "files.associations": { |
| 43 | + "**/requirements{/**,*}.{txt,in}": "pip-requirements", |
16 | 44 | }, |
17 | | - // Stop the 'Black does not support "Format Selection"' message every |
18 | | - // time you paste something (https://stackoverflow.com/a/63612401/3279076) |
19 | | - "editor.formatOnPaste": false |
20 | | - }, |
21 | | - "python.pythonPath": "${env:VIRTUAL_ENV}", |
22 | | - // from here: https://github.com/microsoft/vscode-python/wiki/AB-Experiments |
23 | | - // being selected made things run differently on different peoples systems. |
24 | | - "python.experiments.enabled": false, |
| 45 | + |
| 46 | + "cSpell.language": "en-GB", |
25 | 47 | "cSpell.words": [ |
26 | 48 | "adelie", |
27 | 49 | "boxplot", |
|
0 commit comments