This repository provides a template for setting up a Python development environment using devcontainers. It includes configurations for various tools and libraries commonly used in Python development.
- poetry - dependency management and packaging
- ruff - fast Python linter and code formatter
- pyright - static type checker for Python (usually better than mypy)
- vermin - checks whether your code is compatible with a given Python version
- licensecheck - checks the compatibility of your dependencies' licenses with your project license
- pre-commit - pre-commit hooks for linting, formatting, and other checks
- poethepoet - task management
- Create a new repository using this template.
- Clone your new repository.
- Open the repository in Visual Studio Code.
- If prompted, reopen the repository in a devcontainer; otherwise, use the command palette (Ctrl+Shift+P or Cmd+Shift+P) and select "Reopen in Container".
- Wait for the devcontainer to build and start.
- Once the devcontainer is running, open the terminal and run the following command to install the dependencies:
poetry install
- To test whether everything is working correctly, run:
This command will run the example script provided in the
poe start
devcontainer_python
directory. - Don't forget to replace dummy values with your actual project values in
pyproject.toml
and other configuration files.