This is intended to be a repository to serve as a template to my own, and others projects using Python.
.github/workflows/
: contains the GitHub Actions workflows..vscode/
: contains the settings for Visual Studio Code..devcontainer/
: contains the settings for the development container and the development Dockerfile.app/
: contains the source code of the project.tests/
: contains the tests of the project.
This template relies on using Docker for development and using Visual Studio Code as the IDE.
To start developing in any repository using this template:
- Clone the repository
- Open the repository in VSCode
- Setup intended Python version in the
Dockerfile.dev
- Press
F1
and typeRemote-Containers: Reopen in Container
- Start developing 🚀
During this setup, suggested extensions will be installed in the container, and the Python environment will be created, with
pytest
,coverage
,poetry
andblack
installed.
- Github Action: details needed configuration for the GitHub Actions workflows.
- support status of
python
in the Python Developer's Guide. - vulnerabilities in the Mailing List by Python Software Foundation CVE Numbering Authority and Python Security Response Team.
- Microsoft Package Template for Python here.
Repro steps:
- Ensure docker enginer is running
- Have the required base docker image stored cached
- Attempt to
Open in Container
orRebuild and Open in Container
in repository
Issue:
- Visual Studio Code gets stuck
- Dev Containers extension Logs we can see an issue of Visual Studio Code server communicating with docker engine: whenever a docker command is called, an error with the API is reported
Attempts:
- Restart Visual Studio Code
- Restarted Docker
- Restart computer
Solution:
- Updated Docker
Repro steps:
- Ensure docker enginer is running
- Attempt to
Open in Container
orRebuild and Open in Container
in repository
Issue:
- Dev container cannot start building
Solution:
- Have no internet connectivity to get docker image from remote registry