|
| 1 | +{ |
| 2 | + // Please set 'black-formatter.importStrategy' to 'fromEnvironment' in your |
| 3 | + // workspace (or user) settings to use the same Black version as in the |
| 4 | + // virtual environment. The Black plugin uses the bundled version by |
| 5 | + // default. |
| 6 | + // Not a valid folder-level setting. |
| 7 | + "black-formatter.importStrategy": "fromEnvironment", |
| 8 | + // Similar for Ruff, please set 'ruff.importStrategy' to 'fromEnvironment' |
| 9 | + // in your workspace (or user) settings to use the same Ruff version as in |
| 10 | + // the virtual environment. The Black plugin uses the bundled version by |
| 11 | + // default. |
| 12 | + // Not a valid folder-level setting as well. |
| 13 | + "ruff.importStrategy": "fromEnvironment", |
| 14 | + |
| 15 | + // Enable 'editor.formatOnSave' to run black and other formatters on every (manual) |
| 16 | + // save. Suggested as user-level or workspace-level setting. |
| 17 | + // "editor.formatOnSave": true, |
| 18 | + |
| 19 | + // Please set 'pytest.command' in your workspace (or user) settings to load |
| 20 | + // Pytest from the environment. |
| 21 | + // Not a valid folder-level setting. |
| 22 | + "pytest.command": "python -m pytest", |
| 23 | + |
| 24 | + "files.exclude": { |
| 25 | + ".coverage": true, |
| 26 | + ".direnv/": true, |
| 27 | + ".pytest_cache/": true, |
| 28 | + ".pytest-cov/": true, |
| 29 | + ".ruff_cache/": true, |
| 30 | + "**/__pycache__/": true, |
| 31 | + "**/.mypy_cache/": true, |
| 32 | + "**/*.egg-info/": true, |
| 33 | + "dist/": true, |
| 34 | + }, |
| 35 | + "files.insertFinalNewline": true, |
| 36 | + "python.analysis.diagnosticMode": "workspace", |
| 37 | + "python.analysis.indexing": true, |
| 38 | + "python.analysis.typeCheckingMode": "strict", |
| 39 | + "[python]": { |
| 40 | + "editor.defaultFormatter": "ms-python.black-formatter", |
| 41 | + "editor.codeActionsOnSave": { |
| 42 | + "source.fixAll": true, |
| 43 | + "source.organizeImports": true, |
| 44 | + }, |
| 45 | + "editor.rulers": [ |
| 46 | + 88, // black's default |
| 47 | + ], |
| 48 | + }, |
| 49 | + "python.testing.pytestEnabled": true, |
| 50 | + "coverage-gutters.coverageFileNames": [ |
| 51 | + "coverage.xml", |
| 52 | + ], |
| 53 | + "coverage-gutters.coverageBaseDir": ".pytest-cov", |
| 54 | + "coverage-gutters.coverageReportFileName": "html/index.html", |
| 55 | + |
| 56 | + // Mypy extension with dmypy enabled does not always show the same mypy errors as |
| 57 | + // linter check script. |
| 58 | + "mypy-type-checker.preferDaemon": false, |
| 59 | +} |
0 commit comments