From 7068b06fea333e212429ab7a69262d836975c7ed Mon Sep 17 00:00:00 2001 From: Edmond Date: Sun, 24 Jul 2022 06:28:44 +0000 Subject: [PATCH] Move vscode settings into devcontainer.json. Add python settings and vscode extensions --- .devcontainer/devcontainer.json | 22 ++++++++++++++++++++-- .vscode/settings.json | 3 --- 2 files changed, 20 insertions(+), 5 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 391933de..360128f5 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -27,7 +27,21 @@ "files.watcherExclude": { "**/target/**": true }, - "rust-analyzer.checkOnSave.command": "clippy" + "rust-analyzer.checkOnSave.command": "clippy", + + "python.defaultInterpreterPath": "/opt/venv/bin/python", + "python.linting.enabled": true, + "python.linting.pylintEnabled": true, + "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", + "python.formatting.blackPath": "/usr/local/py-utils/bin/black", + "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", + "python.linting.banditPath": "/usr/local/py-utils/bin/bandit", + "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", + "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", + "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", + "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", + "python.linting.pylintPath": "/opt/venv/bin/pylint", + "python.testing.pytestPath": "/opt/venv/bin/pytest" }, // Add the IDs of extensions you want installed when the container is created. @@ -36,7 +50,11 @@ "mutantdino.resourcemonitor", "rust-lang.rust-analyzer", "tamasfe.even-better-toml", - "serayuzgur.crates" + "serayuzgur.crates", + "ms-python.python", + "ms-python.vscode-pylance", + "esbenp.prettier-vscode", + "stardog-union.stardog-rdf-grammars" ] } }, diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index b71a2478..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "python.defaultInterpreterPath": "/opt/venv/bin/python" -} \ No newline at end of file