Python Project Generator
- Python 3.9
pip install pyprogenor install with PDM
pdm add pyprogenimport pyprogenMakefile contains a lot of functions for faster development.
1. Install all dependencies and pre-commit hooks
Install requirements:
make installUpdate PDM
make updateUpdate all dev libraries to the latest version using one command
make update-dev-deps2. Codestyle Formatting
Automatic formatting uses autoflake, pyupgrade, isort and black.
make formatCodestyle checks only, without rewriting files:
make check-codestyleNote:
check-codestyleusesisort,blackandrufflibrary
3. Code security
make check-securityThis command launches PDM integrity checks as well as identifies security issues with Bandit.
make check-security4. Type checks
Run mypy static type checker
make mypy5. Tests with coverage badges
Run pytest
make test6. All checks
Run all checks:
make check-allthe same as:
make check-style && make mypy && make check-safety && make test7. Cleanup
Delete pycache files
make pycache-removeRemove package build
make build-removeRemove .mypycache
make mypycache-removeOr to remove all above run:
make cleanupBuilt using project template here.