Skip to content

Commit 1d5486e

Browse files
committed
add black formatting to devcontainer
1 parent b7e5a05 commit 1d5486e

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"customizations": {
88
"vscode": {
99
"extensions": [
10-
"ms-python.python"
10+
"ms-python.python",
11+
"ms-python.black-formatter"
1112
],
1213
"settings": {
1314
"extensions.verifySignature": false

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@
99
"python.testing.unittestEnabled": true,
1010
"python.testing.pytestArgs": [
1111
"."
12-
]
12+
],
13+
"editor.formatOnSave": true,
14+
"[python]": {
15+
"editor.defaultFormatter": "ms-python.black-formatter"
16+
},
17+
"python.formatting.provider": "none"
1318
}

Dockerfile.dev

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ RUN apt-get update && apt-get install -y make libgl1-mesa-glx && rm -rf /var/lib
33
WORKDIR /roboflow-python
44
COPY .devcontainer/bashrc_ext /root/bashrc_ext
55
RUN echo "source /root/bashrc_ext" >> ~/.bashrc
6-
COPY . .
6+
COPY ./setup.py ./pyproject.toml ./README.md ./requirements.txt ./
7+
COPY roboflow/__init__.py ./roboflow/__init__.py
78
RUN pip install -e ".[dev]"
9+
COPY . .

0 commit comments

Comments
 (0)