Skip to content

Commit 4baf15f

Browse files
committed
OPS: Update devcontainer settings an extensions
1 parent 5ee35c5 commit 4baf15f

File tree

1 file changed

+31
-39
lines changed

1 file changed

+31
-39
lines changed

.devcontainer/devcontainer.json

Lines changed: 31 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -10,57 +10,52 @@
1010
"customizations": {
1111
"vscode": {
1212
"settings": {
13-
"austin.mode": "Wall time",
13+
"[python]": {
14+
"editor.defaultFormatter": "ms-python.black-formatter",
15+
"editor.formatOnSave": true,
16+
"editor.codeActionsOnSave": {
17+
"source.organizeImports": "always",
18+
"source.fixAll": "always"
19+
}
20+
},
1421
"black-formatter.args": ["--line-length", "120"],
22+
"black-formatter.importStrategy": "fromEnvironment",
23+
"isort.args": ["--profile", "black"],
24+
"isort.importStrategy": "fromEnvironment",
25+
"austin.mode": "Wall time",
1526
"editor.defaultFormatter": "esbenp.prettier-vscode",
1627
"editor.formatOnSave": true,
17-
"esbonio.server.enabled": true,
18-
"esbonio.sphinx.confDir": "${workspaceFolder}/docs/source",
1928
"jupyter.widgetScriptSources": ["jsdelivr.com", "unpkg.com"],
20-
"prettier.prettierPath": "/usr/local/prettier",
21-
"python.defaultInterpreterPath": "/usr/local/bin/python",
22-
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
23-
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
24-
"python.formatting.provider": "black",
25-
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
26-
"python.languageServer": "Pylance",
27-
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
28-
"python.linting.enabled": true,
29-
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
30-
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
31-
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
32-
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
33-
// Disabling specific messages:
29+
// Line length to match black settings
30+
// Disable specific messages:
3431
// - To find the details do: /usr/local/py-utils/bin/pylint --list-msgs
3532
// - Disable missing-module-docstring (C0114) because we don't document modules routinely, just their members
3633
// - Disable invalid-name (C0103) because pylint thinks that eg 'x', 'df', 'np' are invalid due to their lengths
37-
"python.linting.pylintArgs": [
34+
"pylint.args": [
3835
"--max-line-length=120",
39-
"--disable=missing-module-docstring,invalid-name"
40-
],
41-
"python.linting.pylintEnabled": true,
42-
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
43-
"python.pythonPath": "/usr/local/bin/python",
44-
"python.testing.pytestArgs": [
45-
"--cov=django_svelte_jsoneditor",
46-
"--cov-report=xml:cov.xml"
36+
"--disable=missing-module-docstring,invalid-name",
37+
"--load-plugins=pylint_django"
4738
],
48-
// Scrolling the editor is a nice idea but it doesn't work, always out of sync and impossible to manage
49-
"restructuredtext.preview.scrollEditorWithPreview": false,
50-
"restructuredtext.preview.scrollPreviewWithEditor": false,
51-
"restructuredtext.linter.doc8.extraArgs": ["--max-line-length 180"],
52-
"terminal.integrated.defaultProfile.linux": "zsh"
39+
"python.testing.pytestEnabled": true,
40+
"python.testing.unittestEnabled": false,
41+
"terminal.integrated.defaultProfile.linux": "zsh",
42+
// Handle this: https://github.com/microsoft/vscode-python/issues/693
43+
"python.testing.pytestArgs": ["--no-cov"]
5344
},
54-
5545
// Add the IDs of extensions you want installed when the container is created.
5646
"extensions": [
57-
47+
"erikphansen.vscode-toggle-column-selection",
48+
"esbenp.prettier-vscode",
49+
"GitHub.copilot",
50+
"GitHub.copilot-chat",
51+
"github.vscode-github-actions",
5852
"irongeek.vscode-env",
59-
"me-dutour-mathieu.vscode-github-actions",
60-
"mikestead.dotenv",
6153
"ms-python.python",
6254
"ms-python.vscode-pylance",
6355
"ms-python.pylint",
56+
"ms-python.black-formatter",
57+
"ms-python.flake8",
58+
"ms-python.isort",
6459
"ms-toolsai.jupyter",
6560
"ms-toolsai.jupyter-renderers",
6661
"ms-toolsai.jupyter-keymap",
@@ -70,10 +65,7 @@
7065
"shamanu4.django-intellisense",
7166
"thebarkman.vscode-djaneiro",
7267
"trond-snekvik.simple-rst",
73-
"ms-azuretools.vscode-docker",
74-
"ryanluker.vscode-coverage-gutters",
75-
"ms-python.black-formatter",
76-
"GitHub.copilot"
68+
"4ops.terraform"
7769
]
7870
}
7971
},

0 commit comments

Comments
 (0)