|
| 1 | +{ |
| 2 | + "files.associations": { |
| 3 | + ".dockerignore": "ignore", // auto-interprets wrongly as Python somehow |
| 4 | + }, |
| 5 | + "files.exclude": { |
| 6 | + ".coverage": true, |
| 7 | + ".direnv/": true, |
| 8 | + ".pytest_cache/": true, |
| 9 | + ".pytest-cov/": true, |
| 10 | + ".ruff_cache/": true, |
| 11 | + "**/__pycache__/": true, |
| 12 | + "**/.mypy_cache/": true, |
| 13 | + "**/*.egg-info/": true, |
| 14 | + "dist/": true, |
| 15 | + }, |
| 16 | + "files.insertFinalNewline": true, |
| 17 | + "python.linting.mypyEnabled": true, |
| 18 | + "python.linting.enabled": true, |
| 19 | + "python.analysis.diagnosticMode": "workspace", |
| 20 | + "python.analysis.indexing": true, |
| 21 | + "python.analysis.typeCheckingMode": "strict", |
| 22 | + "python.formatting.provider": "black", |
| 23 | + "editor.rulers": [ |
| 24 | + 88, // black's default |
| 25 | + ], |
| 26 | + // https://github.com/microsoft/vscode-isort#import-sorting-on-save |
| 27 | + "[python]": { |
| 28 | + "editor.codeActionsOnSave": { |
| 29 | + "source.organizeImports": true, |
| 30 | + } |
| 31 | + }, |
| 32 | + // for the 'ms-python.isort' extension. |
| 33 | + // keep in sync with /run-all-linters script. |
| 34 | + "isort.args": [ |
| 35 | + "--profile", |
| 36 | + "black", |
| 37 | + ], |
| 38 | + // Enable to run black+isort on every (manual) save, perhaps in user-level settings. |
| 39 | + // "editor.formatOnSave": true, |
| 40 | + "python.testing.pytestEnabled": true, |
| 41 | + // For Pytest IntelliSense |
| 42 | + // https://marketplace.visualstudio.com/items?itemName=Cameron.vscode-pytest |
| 43 | + "pytest.command": "\"${command:python.interpreterPath}\" -m pytest", |
| 44 | + "coverage-gutters.coverageFileNames": [ |
| 45 | + "coverage.xml", |
| 46 | + ], |
| 47 | + "coverage-gutters.coverageBaseDir": ".pytest-cov", |
| 48 | + "coverage-gutters.coverageReportFileName": "html/index.html", |
| 49 | + "shellcheck.executablePath": "shellcheck", |
| 50 | + "shellcheck.useWorkspaceRootAsCwd": true, |
| 51 | + // for the 'timonwong.shellcheck' extension. |
| 52 | + // keep in sync with /run-all-linters script. |
| 53 | + "shellcheck.customArgs": [ |
| 54 | + "--norc", |
| 55 | + ], |
| 56 | +} |
0 commit comments