Skip to content

Commit

Permalink
Merge pull request #15 from a-lab-nagoya/#14-dev-environment
Browse files Browse the repository at this point in the history
Add development environment
  • Loading branch information
astropenguin authored Sep 17, 2021
2 parents 2bfa1a3 + ca2dfc4 commit 95f3821
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM mcr.microsoft.com/vscode/devcontainers/python:3.9
ENV POETRY_VIRTUALENVS_CREATE=false

COPY poetry.lock pyproject.toml ./
RUN apt update && apt install -y pandoc
RUN pip install poetry
RUN poetry install
28 changes: 28 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "Python 3.9",
"build": {
"context": "..",
"dockerfile": "Dockerfile",
},
"extensions": [
"github.vscode-pull-request-github",
"mhutchie.git-graph",
"ms-python.python",
"streetsidesoftware.code-spell-checker",
"tamasfe.even-better-toml",
],
"settings": {
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"python.formatting.provider": "black",
"python.languageServer": "Pylance",
"python.linting.enabled": true,
"python.linting.lintOnSave": true,
"python.linting.flake8Enabled": true,
"[python]": {
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.tabSize": 4,
},
},
}
7 changes: 0 additions & 7 deletions .vscode/settings.json

This file was deleted.

2 changes: 0 additions & 2 deletions poetry.toml

This file was deleted.

0 comments on commit 95f3821

Please sign in to comment.