first commit

This commit is contained in:
2022-03-16 16:34:36 +09:00
commit 6293143105
8 changed files with 501 additions and 0 deletions

9
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM python:3.10.2-slim
RUN apt update \
&& apt install -y --no-install-recommends apt-utils git gcc build-essential \
&& pip install --no-cache-dir autopep8 flake8 pytest \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

View File

@ -0,0 +1,35 @@
{
"name": "Python 3",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"mounts": [
"source=/data,target=/data,type=bind,consistency=cached",
],
"settings": {
"python.pythonPath": "/usr/local/bin/python",
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": [
"--ignore=E402",
"--max-line-length",
"4096"
],
"python.formatting.provider": "autopep8",
"python.formatting.autopep8Args": [
"--ignore",
"E402",
"--max-line-length",
"4096"
],
"[python]": {
"editor.formatOnSave": true
}
},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance"
],
"postCreateCommand": "pip install -r requirements.txt",
}