Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-cooney authored Oct 23, 2023
1 parent a8f606d commit 9bf40be
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/workspaces/CircuitsVis/python/.venv/bin/python",
"mypy.dmypyExecutable": "mypy"
"mypy.dmypyExecutable": "dmypy"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
Expand Down
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"tushortz.python-extended-snippets",
"yzhang.markdown-all-in-one",
"matangover.mypy",
"github.vscode-github-actions"
"github.vscode-github-actions",
"mikoz.black-py"
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,12 @@
"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 9bf40be

Please sign in to comment.