Skip to content

Commit df2bc82

Browse files
committed
init: using Dev Container.
1 parent d14335c commit df2bc82

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM mcr.microsoft.com/vscode/devcontainers/python:3.10
2+
3+
WORKDIR /workspace
4+
5+
COPY requirements.txt .
6+
RUN pip install -r requirements.txt
7+
8+
COPY . .
9+
10+
CMD ["bash"]

.devcontainer/devcontainer.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Python Dev Container",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"context": ".."
6+
},
7+
"extensions": [
8+
"ms-python.python",
9+
"ms-python.vscode-pylance"
10+
],
11+
"settings": {
12+
"python.pythonPath": "/usr/local/bin/python"
13+
},
14+
"remoteUser": "vscode",
15+
"workspaceFolder": "/workspace"
16+
}

requirements.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# pytest & plugins
2+
pytest==7.2.1
3+
pytest-xdist~=3.2.0
4+
coverage~=7.1.0
5+
black~=23.1.0
6+
pytest-timeout~=2.1.0
7+
pytest-env~= 0.8.1
8+
pytest-html~=3.2.0
9+
pytest-mock~=3.10.0
10+
pytest-sugar~=0.9.6
11+
pytest-random-order~=1.1.0
12+
pytest-flake8~=1.0.7
13+
flake8~=6.0.0
14+
pytest-tldr==0.2.5
15+
pytest-profiling~=1.7.0
16+
pytest-stress~=1.0.1
17+
pytest-clarity~=1.0.1
18+
19+
# requests
20+
requests
21+
22+
# pydantic
23+
pydantic

0 commit comments

Comments
 (0)