Skip to content

Commit

Permalink
Improve vscode defaults (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-cooney authored Oct 23, 2023
1 parent c93ecbb commit aa4a5e1
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 19 deletions.
13 changes: 9 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/workspaces/CircuitsVis/python/.venv/bin/python",
"python.formatting.autopep8Path": "autopep8",
"python.linting.mypyPath": "mypy"
"mypy.dmypyExecutable": "dmypy"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
Expand All @@ -35,8 +33,12 @@
"donjayamanne.python-extension-pack",
"eg2.vscode-npm-script",
"esbenp.prettier-vscode",
"github.copilot",
"github.vscode-pull-request-github",
"ionutvmi.path-autocomplete",
"mikoz.autoflake-extension",
"ms-python.isort",
"ms-python.pylint",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-toolsai.jupyter-keymap",
Expand All @@ -48,9 +50,12 @@
"richie5um2.vscode-sort-json",
"rvest.vs-code-prettier-eslint",
"stkb.rewrap",
"streetsidesoftware.code-spell-checker-british-english",
"streetsidesoftware.code-spell-checker",
"tushortz.python-extended-snippets",
"yzhang.markdown-all-in-one"
"yzhang.markdown-all-in-one",
"matangover.mypy",
"github.vscode-github-actions"
]
}
},
Expand Down
13 changes: 13 additions & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"language": "en,en-GB",
"words": [
"circuitsvis",
"Colab",
"Colord",
"crossorigin",
"devcontainer",
"Interpretability",
"ndarray",
"NPMJS"
]
}
30 changes: 29 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,37 @@
{
"recommendations": [
"2gua.rainbow-brackets",
"christian-kohler.npm-intellisense",
"christian-kohler.path-intellisense",
"davidanson.vscode-markdownlint",
"dbaeumer.vscode-eslint",
"donjayamanne.githistory",
"donjayamanne.python-extension-pack",
"eg2.vscode-npm-script",
"esbenp.prettier-vscode",
"github.copilot",
"github.vscode-pull-request-github",
"ionutvmi.path-autocomplete",
"mikoz.autoflake-extension",
"ms-python.isort",
"ms-python.pylint",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-toolsai.jupyter-keymap",
"ms-toolsai.jupyter-renderers",
"ms-toolsai.jupyter",
"ms-vsliveshare.vsliveshare-pack",
"njpwerner.autodocstring",
"redhat.vscode-yaml",
"richie5um2.vscode-sort-json",
"rvest.vs-code-prettier-eslint",
"stkb.rewrap",
"streetsidesoftware.code-spell-checker"
"streetsidesoftware.code-spell-checker-british-english",
"streetsidesoftware.code-spell-checker",
"tushortz.python-extended-snippets",
"yzhang.markdown-all-in-one",
"matangover.mypy",
"github.vscode-github-actions",
"mikoz.black-py"
]
}
34 changes: 20 additions & 14 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"rewrap.autoWrap.enabled": true,
"eslint.packageManager": "yarn",
"eslint.workingDirectories": [
{
"mode": "auto"
Expand All @@ -10,26 +9,33 @@
"ignorePath": "../.gitignore"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": true,
"source.organizeImports": true
},
"eslint.validate": [
"javascript",
"typescript"
],
"cSpell.words": [
"circuitsvis",
"Colab",
"Colord",
"crossorigin",
"devcontainer",
"Interpretability",
"ndarray",
"NPMJS"
],
"rewrap.reformat": false,
"editor.formatOnSave": true,
"python.linting.pylintArgs": [
"pylint.args": [
"--rcfile=./python/.pylintrc",
"--generated-members=numpy.* ,torch.* ,cv2.* , cv.*"
]
],
"python.testing.pytestArgs": [
"python/circuitsvis",
],
"python.testing.pytestEnabled": true,
"rewrap.wrappingColumn": 100,
"pylint.importStrategy": "fromEnvironment",
"notebook.formatOnCellExecution": true,
"notebook.formatOnSave.enabled": true,
"mypy.configFile": "python/mypy.ini",
"mypy.targets": [
"python/circuitsvis",
"python/circuitsvis/"
],
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
}

0 comments on commit aa4a5e1

Please sign in to comment.