Skip to content

Commit aa4a5e1

Browse files
authored
Improve vscode defaults (#83)
1 parent c93ecbb commit aa4a5e1

File tree

4 files changed

+71
-19
lines changed

4 files changed

+71
-19
lines changed

.devcontainer/devcontainer.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
"vscode": {
2121
// Set *default* container specific settings.json values on container create.
2222
"settings": {
23-
"python.defaultInterpreterPath": "/workspaces/CircuitsVis/python/.venv/bin/python",
24-
"python.formatting.autopep8Path": "autopep8",
25-
"python.linting.mypyPath": "mypy"
23+
"mypy.dmypyExecutable": "dmypy"
2624
},
2725
// Add the IDs of extensions you want installed when the container is created.
2826
"extensions": [
@@ -35,8 +33,12 @@
3533
"donjayamanne.python-extension-pack",
3634
"eg2.vscode-npm-script",
3735
"esbenp.prettier-vscode",
36+
"github.copilot",
3837
"github.vscode-pull-request-github",
3938
"ionutvmi.path-autocomplete",
39+
"mikoz.autoflake-extension",
40+
"ms-python.isort",
41+
"ms-python.pylint",
4042
"ms-python.python",
4143
"ms-python.vscode-pylance",
4244
"ms-toolsai.jupyter-keymap",
@@ -48,9 +50,12 @@
4850
"richie5um2.vscode-sort-json",
4951
"rvest.vs-code-prettier-eslint",
5052
"stkb.rewrap",
53+
"streetsidesoftware.code-spell-checker-british-english",
5154
"streetsidesoftware.code-spell-checker",
5255
"tushortz.python-extended-snippets",
53-
"yzhang.markdown-all-in-one"
56+
"yzhang.markdown-all-in-one",
57+
"matangover.mypy",
58+
"github.vscode-github-actions"
5459
]
5560
}
5661
},

.vscode/cspell.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"language": "en,en-GB",
3+
"words": [
4+
"circuitsvis",
5+
"Colab",
6+
"Colord",
7+
"crossorigin",
8+
"devcontainer",
9+
"Interpretability",
10+
"ndarray",
11+
"NPMJS"
12+
]
13+
}

.vscode/extensions.json

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,37 @@
11
{
22
"recommendations": [
3+
"2gua.rainbow-brackets",
4+
"christian-kohler.npm-intellisense",
5+
"christian-kohler.path-intellisense",
6+
"davidanson.vscode-markdownlint",
37
"dbaeumer.vscode-eslint",
8+
"donjayamanne.githistory",
9+
"donjayamanne.python-extension-pack",
10+
"eg2.vscode-npm-script",
411
"esbenp.prettier-vscode",
12+
"github.copilot",
13+
"github.vscode-pull-request-github",
14+
"ionutvmi.path-autocomplete",
15+
"mikoz.autoflake-extension",
16+
"ms-python.isort",
17+
"ms-python.pylint",
18+
"ms-python.python",
19+
"ms-python.vscode-pylance",
20+
"ms-toolsai.jupyter-keymap",
21+
"ms-toolsai.jupyter-renderers",
22+
"ms-toolsai.jupyter",
23+
"ms-vsliveshare.vsliveshare-pack",
24+
"njpwerner.autodocstring",
25+
"redhat.vscode-yaml",
26+
"richie5um2.vscode-sort-json",
527
"rvest.vs-code-prettier-eslint",
628
"stkb.rewrap",
7-
"streetsidesoftware.code-spell-checker"
29+
"streetsidesoftware.code-spell-checker-british-english",
30+
"streetsidesoftware.code-spell-checker",
31+
"tushortz.python-extended-snippets",
32+
"yzhang.markdown-all-in-one",
33+
"matangover.mypy",
34+
"github.vscode-github-actions",
35+
"mikoz.black-py"
836
]
937
}

.vscode/settings.json

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"rewrap.autoWrap.enabled": true,
3-
"eslint.packageManager": "yarn",
43
"eslint.workingDirectories": [
54
{
65
"mode": "auto"
@@ -10,26 +9,33 @@
109
"ignorePath": "../.gitignore"
1110
},
1211
"editor.codeActionsOnSave": {
13-
"source.fixAll.eslint": true
12+
"source.fixAll.eslint": true,
13+
"source.organizeImports": true
1414
},
1515
"eslint.validate": [
1616
"javascript",
1717
"typescript"
1818
],
19-
"cSpell.words": [
20-
"circuitsvis",
21-
"Colab",
22-
"Colord",
23-
"crossorigin",
24-
"devcontainer",
25-
"Interpretability",
26-
"ndarray",
27-
"NPMJS"
28-
],
2919
"rewrap.reformat": false,
3020
"editor.formatOnSave": true,
31-
"python.linting.pylintArgs": [
21+
"pylint.args": [
3222
"--rcfile=./python/.pylintrc",
3323
"--generated-members=numpy.* ,torch.* ,cv2.* , cv.*"
34-
]
24+
],
25+
"python.testing.pytestArgs": [
26+
"python/circuitsvis",
27+
],
28+
"python.testing.pytestEnabled": true,
29+
"rewrap.wrappingColumn": 100,
30+
"pylint.importStrategy": "fromEnvironment",
31+
"notebook.formatOnCellExecution": true,
32+
"notebook.formatOnSave.enabled": true,
33+
"mypy.configFile": "python/mypy.ini",
34+
"mypy.targets": [
35+
"python/circuitsvis",
36+
"python/circuitsvis/"
37+
],
38+
"[python]": {
39+
"editor.defaultFormatter": "ms-python.black-formatter"
40+
},
3541
}

0 commit comments

Comments
 (0)