Skip to content

Commit c30d2fb

Browse files
Merge pull request #42 from vbossica/add_devcontainer
Add vscode devcontainer
2 parents 0595158 + 31b9c5d commit c30d2fb

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "Python",
3+
"image": "mcr.microsoft.com/devcontainers/python:latest",
4+
"features": {
5+
"azure-cli": "latest",
6+
"git": "latest"
7+
},
8+
"customizations": {
9+
"vscode": {
10+
"settings": {
11+
"files.insertFinalNewline": true,
12+
"files.trimTrailingWhitespace": true
13+
},
14+
"extensions": [
15+
"ms-python.python"
16+
]
17+
}
18+
}
19+
}

docs/development.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Development
2+
3+
## VSCode Setup
4+
5+
To set up VSCode for development:
6+
7+
1. start the editor with the Python devcontainer
8+
9+
1. install the dependencies:
10+
11+
```bash
12+
# the _version.py file is generated and may need to be removed
13+
rm python-gpt-po/_version.py
14+
15+
python -m pip install -e .
16+
```
17+
18+
## Running the Tests
19+
20+
```bash
21+
python -m pytest
22+
```

0 commit comments

Comments
 (0)