Skip to content

Commit

Permalink
Merge pull request #155 from andthum/chore/vscode-settings
Browse files Browse the repository at this point in the history
Update VSCode Settings
  • Loading branch information
andthum authored Jan 2, 2024
2 parents e4a5de1 + 9cd42aa commit 38f41e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"KevinRose.vsc-python-indent",
"lextudio.restructuredtext",
"ms-python.black-formatter",
"ms-python.flake8",
"ms-python.isort",
"ms-python.python",
"njpwerner.autodocstring",
Expand Down
29 changes: 10 additions & 19 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
// mypy.
"**/.mypy_cache/": true,
},
"flake8.importStrategy": "fromEnvironment",
"git.branchProtection": [
"main",
"master",
Expand All @@ -169,43 +170,33 @@
],
"git.enableCommitSigning": true,
"isort.importStrategy": "fromEnvironment",
"[markdown]": {
// Markdown uses two or more spaces at the end of a line to
// signify a line break.
"files.trimTrailingWhitespace": false,
},
"markdown.extension.list.indentationSize": "inherit",
"markdown.extension.print.absoluteImgPath": false,
"markdown.extension.toc.levels": "2..3",
"markdown.extension.toc.orderedList": true,
"markdown.updateLinksOnFileMove.enabled": "prompt",
"markdown.validate.enabled": true,
"[python]": {
// Somehow, the ms-python.isort removes blank lines before
// comments everywhere in the code. Therefore, sorting imports
// on file save is disabled for now.
// "editor.codeActionsOnSave": {
// // Format import statements with isort.
// "source.organizeImports": true,
// },
"editor.defaultFormatter": "ms-python.black-formatter",
},
"python.defaultInterpreterPath": "python3",
"python.envFile": "${workspaceFolder}/.venv-dev",
"python.formatting.provider": "none",
"python.linting.flake8Enabled": true,
"python.testing.pytestEnabled": true,
"pythonIndent.trimLinesWithOnlyWhitespace": true,
"restructuredtext.editor.listEditing.list.indentationSize": "inherit",
"restructuredtext.preview.name": "docutils",
"rewrap.autoWrap.enabled": true,
"rewrap.doubleSentenceSpacing": true,
"shellformat.flag": "--language-dialect=bash --indent=4 --case-indent --space-redirects",
"shellformat.path": "${workspaceFolder}/.venv-dev/bin/shfmt",
"yaml.format.printWidth": 79,
"[markdown]": {
// Markdown uses two or more spaces at the end of a line to
// signify a line break.
"files.trimTrailingWhitespace": false,
},
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
},
"[yaml]": {
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"editor.tabSize": 2,
},
"yaml.format.printWidth": 79,
}

0 comments on commit 38f41e5

Please sign in to comment.