This is a scaffolding project to create a new devcontainer environment for a Python application in VS Code
This project provides a pre-configured development environment (DevContainer) for Python applications in Visual Studio Code.
- You're using Windows with WSL 2.
- You'll need VS Code with the Dev Containers extension installed.
- You'll use Python's pyproject.toml for package management.
- You'll leverage Azure Pipelinesfor CI/CD
To get started:
-
Make sure you have the Dev Containers extension in VS Code installed.
-
Clone this repo
git clone https://dev.azure.com/riskatwork/Scaffolding/_git/PythonDevcontainer
-
Customize settings:
-
Rename ```src/app``: Change the directory name ot match your projects name. Also update:
-
Update the
pyproject.toml
: Modify thename
andpackages
fields to reflect your project's details. NOTE: the name of the workspaceFolder in the devcontainer.json and the application directory in the DockerFile should not be changed. -
Adjust dependencies: Update your
pyproject.toml
with the dependencies you need.
-
-
Review project files:
- Configure CI/CD: Update or replcate the existing azure pipeline to suit your requirements
- Update the
README.md
- Examine the
.dockerignore
and.gitignore
files to ensure they're appropriate for you
-
Write your code: Create your python files within the
src
directory