poetry plugin to register wrapped commands to use as pre-commit-hooks
Project description
poetry-plugin-hook
poetry
plugin to register wrapped commands to use as pre-commit-hooks
. all hook commands return zero on success and non-zero on failure.
install
$ pip install poetry-plugin-hook
or with poetry
$ poetry self add poetry-plugin-hook
hook latest
Wrapper for poetry show -o -T
command.
Exit code represents the number of outdated packages.
$ poetry hook latest && echo exit-code: $?
All top-level dependencies are up-to-date.
exit-code: 0
hook sync
Wrapper for poetry install --sync
command.
With --exit
option, the command returns the corresponding value as exit code. With it's default --exit=any
the sum of installs, updates and removals is returned.
$ poetry hook sync --dry-run && echo exit-code: $?
No dependencies to install or update.
exit-code: 0
Dependencies
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for poetry_plugin_hook-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 850a7fb127cd436166f04fecf8e6a2c03872fbaf0774986f73c292a81c9753e8 |
|
MD5 | 8ab44ba106fe4b861973fae72490c404 |
|
BLAKE2b-256 | 9cd7bea3c864c44c176f038258f0cb08d7186e151c96533f0500db98f9ad8cad |