Skip to content

Commit a4424c3

Browse files
RobBagbyRob Bagby
andauthored
Added devcontainer to allow for easier development (#65)
Co-authored-by: Rob Bagby <robbag@microsoft.com>
1 parent 081f9df commit a4424c3

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"image": "python:3.5.2",
3+
4+
// Run Bash script in .devcontainer directory
5+
"onCreateCommand": "/bin/bash .devcontainer/on-create.sh",
6+
7+
"extensions": [
8+
"ms-python.python"
9+
]
10+
}

.devcontainer/on-create.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
python -m pip install --upgrade pip
2+
pip install -r requirements.txt
3+
pip install -r dev_requirements.txt
4+
pip install flake8
5+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
6+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
7+
pip install pytest
8+
pytest

0 commit comments

Comments
 (0)