Skip to content

Commit

Permalink
add black formatting to devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
tonylampada committed Sep 17, 2023
1 parent b7e5a05 commit 1d5486e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"customizations": {
"vscode": {
"extensions": [
"ms-python.python"
"ms-python.python",
"ms-python.black-formatter"
],
"settings": {
"extensions.verifySignature": false
Expand Down
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@
"python.testing.unittestEnabled": true,
"python.testing.pytestArgs": [
"."
]
],
"editor.formatOnSave": true,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"python.formatting.provider": "none"
}
4 changes: 3 additions & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ RUN apt-get update && apt-get install -y make libgl1-mesa-glx && rm -rf /var/lib
WORKDIR /roboflow-python
COPY .devcontainer/bashrc_ext /root/bashrc_ext
RUN echo "source /root/bashrc_ext" >> ~/.bashrc
COPY . .
COPY ./setup.py ./pyproject.toml ./README.md ./requirements.txt ./
COPY roboflow/__init__.py ./roboflow/__init__.py
RUN pip install -e ".[dev]"
COPY . .

0 comments on commit 1d5486e

Please sign in to comment.