Package configuration example using bleeding edge toolset.
Project description
modernpackage
This is a boilerplate with bleeding edge linters for a new python package, just run:
git clone git@github.com:albertas/modernpackage.git <your-package-name>
cd <your-package-name>
make init <your-package-name>
- to start your modern package.
Development
Commonly used commands for package development:
make check
- run unit tests and linters.make fix
- format code and fix detected fixable issues.make publish
- publishes current package version to pypi.org.make compile
- bump and freeze dependency versions in requirements*.txt filesmake sync
- upgrade installed dependencies in Virtual Environment (executed aftermake compile
)
Toolset
This package uses these cutting edge tools:
- ruff - for linting and code formatting
- mypy - for type checking
- pip-audit - for known vulnerability detection in dependencies
- deadcode - for unused code detection
- pytest - for collecting and running unit tests
- coverage - for code coverage by unit tests
- hatch - for publishing package to pypi.org
- uv - for Python virtual environment and dependency management
- pyproject.toml - configuration file for all tools
- Makefile - aliases for commonly used command line commands
Feature requests:
- make a cli command: this package should be installable. Ideally this flow should work:
pip install modernpackage
modernpackage mynewpackage
cd mynewpackage
&&make check
&&make publish
- Enable github and gitlab pipeline files to run
make check
in the pipeline. - Add pre-commit hooks with all the tools enabled.
- codspeed.io could be considered for Continuous integration pipeline
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
modernpackage-0.0.2.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for modernpackage-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a02170593f2760292a0a5e4e09eab23081d5b9dd96daae59ebc63f9b57e043e7 |
|
MD5 | 27f77247fdcf01745705126b6fc47ece |
|
BLAKE2b-256 | e74b78a829fd43d961e6c953b98fc5995474e2f4e4600b3cda22fe09ff1917bb |