first commit
This commit is contained in:
9
.devcontainer/Dockerfile
Normal file
9
.devcontainer/Dockerfile
Normal 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/*
|
||||
|
35
.devcontainer/devcontainer.json
Normal file
35
.devcontainer/devcontainer.json
Normal 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",
|
||||
}
|
Reference in New Issue
Block a user