Skip to content

bramjochems/python_dev_container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a scaffolding project to create a new devcontainer environment for a Python application in VS Code

Purpose

This project provides a pre-configured development environment (DevContainer) for Python applications in Visual Studio Code.

Assumptions:

  • 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

Getting started

To get started:

  1. Make sure you have the Dev Containers extension in VS Code installed.

  2. Clone this repo

    git clone https://dev.azure.com/riskatwork/Scaffolding/_git/PythonDevcontainer
    
  3. Customize settings:

    • Rename ```src/app``: Change the directory name ot match your projects name. Also update:

    • Update the pyproject.toml: Modify the name and packages 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.

  4. 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
  5. Write your code: Create your python files within the src directory

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published