๐ฆ Ready-to-use GitHub template repository for Python 3 Docker applications with development best practices.
๐ ๏ธ Includes dependency management, testing, linting, CI/CD workflow, and containerization.
๐ Just click "Use this template" to start your project.
- Python 3.13 compatibility
- Designed for Docker-based projects (not libraries) like this doku project
- Produces a ready-to-use Docker image
- Dependency management with pip-tools, separating direct from transitive dependencies
- Testing setup with Pytest and Coverage reporting
- Fast and convenient Ruff linter and formatter
- Automatic documentation generation from README, integrated with GitHub Actions and published to GitHub Pages
- Development workflow with live code mounting for real-time Docker development
- Comprehensive Makefile with useful development commands
- Pre-configured GitHub CI workflow (using make commands)
- Git version and commit hash integrated into the code via environment variables
This project includes several convenient make
commands to help with development:
make info
- Display current revision information (git tag and SHA)make pip-sync
- Generate requirements.txt from requirements.in and sync your Python environmentmake build
- Build Docker image for the projectmake lint
- Run code linting with ruffmake fmt
- Format code with ruff (runs lint first)make test
- Run unit tests in Docker containermake cov
- Generate HTML test coverage reportsmake dev
- Start development container with mounted source code, environment variables and exposed port 8000