aboutsummaryrefslogtreecommitdiff
path: root/src/python/devcontainer-feature.json
diff options
context:
space:
mode:
authorJosh Spicer <joshspicer@github.com>2022-06-03 17:46:25 +0300
committerGitHub <noreply@github.com>2022-06-03 17:46:25 +0300
commitc12a205ab8e195541acfe0cb654b4888e16ea05c (patch)
treea1a45ac7dec9f31fa62972a65414b6d6fd1fd60d /src/python/devcontainer-feature.json
parent283b8e1f8f5dec9e54199c107e772ce56683769e (diff)
Pass options via environment variables (#39)
* up to docker-in-docker converted * first pass at the rest of the features (and bash linting and updated CLI * move shell linter to own file * rename feature.json -> devcontainer-feature.json * continue on error * continue on error in right spot * formatting * fix AZ_VERSION * update python * restore variable name * update linter actions, fix dind/dfd/desktop scripts, add test-scenaerios * add tree because I like tree * glob for shell linter * fix test-scenarios * shell linter * more shell helper
Diffstat (limited to 'src/python/devcontainer-feature.json')
-rw-r--r--src/python/devcontainer-feature.json68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/python/devcontainer-feature.json b/src/python/devcontainer-feature.json
new file mode 100644
index 0000000..238b8d1
--- /dev/null
+++ b/src/python/devcontainer-feature.json
@@ -0,0 +1,68 @@
+{
+ "id": "python",
+ "name": "Python (may require compilation)",
+ "description": "Python (may require compilation)",
+ "options": {
+ "version": {
+ "type": "string",
+ "enum": [
+ "latest",
+ "os-provided",
+ "none",
+ "3.10",
+ "3.9",
+ "3.8",
+ "3.7",
+ "3.6"
+ ],
+ "default": "os-provided",
+ "description": "Select a Python version to install."
+ },
+ "install_python_tools": {
+ "type": "boolean",
+ "default": true,
+ "description": "Install common Python tools like pylint"
+ },
+ "optimize": {
+ "type": "boolean",
+ "default": false,
+ "description": "Optimize Python for performance when compiled (slow)"
+ },
+ "installPath": {
+ "type": "string",
+ "default": "/usr/local/python",
+ "description": "The path where python will be installed."
+ },
+ "override_default_version": {
+ "type": "boolean",
+ "default": "true",
+ "description": "If true, overrides existing version (if any) of python on the PATH"
+ }
+ },
+ "containerEnv": {
+ "PYTHON_PATH": "/usr/local/python/current",
+ "PIPX_HOME": "/usr/local/py-utils",
+ "PIPX_BIN_DIR": "/usr/local/py-utils/bin",
+ "PATH": "${PYTHON_PATH}/bin:${PATH}:${PIPX_BIN_DIR}"
+ },
+ "extensions": [
+ "ms-python.python",
+ "ms-python.vscode-pylance"
+ ],
+ "settings": {
+ "python.defaultInterpreterPath": "/usr/local/bin/python",
+ "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": "/usr/local/py-utils/bin/pylint"
+ },
+ "install": {
+ "app": "",
+ "file": "install.sh"
+ }
+} \ No newline at end of file