Skip to content

reznakt/devcontainer-python

Repository files navigation

devcontainer-python

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.

Toolchain

  • 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

Getting Started

  1. Create a new repository using this template.
  2. Clone your new repository.
  3. Open the repository in Visual Studio Code.
  4. 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".
  5. Wait for the devcontainer to build and start.
  6. Once the devcontainer is running, open the terminal and run the following command to install the dependencies:
    poetry install
  7. To test whether everything is working correctly, run:
    poe start
    This command will run the example script provided in the devcontainer_python directory.
  8. Don't forget to replace dummy values with your actual project values in pyproject.toml and other configuration files.

About

A template for Python development using devcontainers

Topics

Resources

License

Stars

Watchers

Forks