aboutsummaryrefslogtreecommitdiff
path: root/src/python/devcontainer-feature.json
blob: 366a119c9f9023d505d1819dba67aae330dcc44b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
  "id": "python",
  "name": "Python",
  "description": "Installs the provided version of Python, as well as PIPX, and other common Python utilities.  JupyterLab is conditionally installed with the python feature. Note: May require source code 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"
    },
    "install_jupyterlab": {
      "type": "boolean",
      "default": false,
      "description": "Install JupyterLab, a web-based interactive development environment for notebooks"
    },
    "configure_jupyterlab_allow_origin": {
      "type": "string",
      "default": "",
      "description": "Configure JupyterLab to accept HTTP requests from the specified origin"
    }
  },
  "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"
  }
}