Skip to content

Commit

Permalink
Some more tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanklee86 committed Apr 5, 2023
1 parent 0dc8032 commit 5abf8c2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/

# Update pip
RUN pip install -U pip

# Install dependencies
COPY requirements.txt .
RUN pip install -U -r requirements.txt
10 changes: 8 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"python.formatting.blackPath": "${workspaceFolder}/.venv/bin/black",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.flake8Path": "${workspaceFolder}/.venv/bin/flake8",
"python.linting.mypyPath": "${workspaceFolder}/.venv/bin/mypy",
"python.linting.pylintPath": "${workspaceFolder}/.venv/bin/pylint",
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
"python.testing.pytestEnabled": true,
"python.venvPath": "${workspaceFolder}/.venv"
},

// Add the IDs of extensions you want installed when the container is created.
Expand Down Expand Up @@ -54,6 +60,6 @@
},

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "root"
"remoteUser": "vscode"
}

3 changes: 3 additions & 0 deletions .devcontainer/post_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
set -ex

# Install package
sudo python -m venv .venv
source .venv/bin/activate
pip install -U -r requirements.txt
python setup.py install
./get-spec.sh

Expand Down

0 comments on commit 5abf8c2

Please sign in to comment.