Skip to content

Commit

Permalink
Add vscode configs
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdangerw committed Dec 16, 2021
1 parent 24e6eb1 commit 8f7a6e2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM tensorflow/tensorflow:latest
RUN apt-get -y update
RUN apt-get -y install git vim
COPY setup.sh /setup.sh
5 changes: 5 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dockerFile": "Dockerfile",
"postCreateCommand": "sh /setup.sh",
"extensions": ["ms-python.python"]
}
3 changes: 3 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pip install -e ".[tests]"
echo "sh shell/lint.sh" > .git/hooks/pre-commit
chmod a+x .git/hooks/pre-commit
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.testing.pytestEnabled": true
}

0 comments on commit 8f7a6e2

Please sign in to comment.