Skip to content

Instantly share code, notes, and snippets.

@adriantorrie
Created September 19, 2025 09:39
Show Gist options
  • Select an option

  • Save adriantorrie/4b456c6ea80c5949fa269048ee3ab959 to your computer and use it in GitHub Desktop.

Select an option

Save adriantorrie/4b456c6ea80c5949fa269048ee3ab959 to your computer and use it in GitHub Desktop.
VSCode settings.json for Python
// References
// - https://code.visualstudio.com/docs/python/settings-reference#_general-settings
{
"coverage-gutters.showLineCoverage": true,
"coverage-gutters.coverageReportFileName": ".testing/html/index.html",
"coverage-gutters.showGutterCoverage": false,
"coverage-gutters.coverageFileNames": [
".testing/coverage.xml"
],
"editor.formatOnSave": true,
"[dockerfile]": {
"editor.formatOnSave": false
},
"[json]": {
"editor.formatOnSave": false
},
"[markdown]": {
"editor.formatOnSave": false
},
"editor.rulers": [
72, // Docstring width
79 // Code width
],
"markdownlint.config": {
"no-inline-html": false,
"single-h1": false
},
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
},
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"isort.args": [
"--profile",
"black"
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment