No project description provided
Project description
pre-commit-hook-poetry-auto-semver
A pre-commit hook to auto-increment the poetry project's version when source code changes.
Using pre-commit-hook-poetry-auto-semver
Add this to your .pre-commit-config.yaml
- repo: https://github.com/ipear3/pre-commit-hook-poetry-auto-semver
rev: '0.0.1'
hooks:
- id: poetry-auto-semver
Hooks available
poetry-auto-semver
Check whether the poetry project's version is greater than the current git tag version. If the poetry project's version is less than or equal to the current git tag version, increment the project's patch version. If the poetry project's version is greater than the current git tag version, the developer has already incremented the project's version.
Pre-configured to run on push
affecting files: src.*|.*py|poetry.lock|pyproject.toml
.
Development
poetry install
pre-commit install
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
Built Distribution
File details
Details for the file pre_commit_hook_poetry_auto_semver-0.0.3.tar.gz
.
File metadata
- Download URL: pre_commit_hook_poetry_auto_semver-0.0.3.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b43bb4e55ca66343ed90372173042bb803dc684333b433299598def9d99a574 |
|
MD5 | cf1191b798e51d3c1e832700ca988fe8 |
|
BLAKE2b-256 | 626aa90e546f2dccbb19e780700ab127af8178e249addd3619f42e28cbb6a649 |
File details
Details for the file pre_commit_hook_poetry_auto_semver-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: pre_commit_hook_poetry_auto_semver-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59c09d30973d13ded9ca84bb14ec08fb779a29c7c6ba815ddfa33fab655801d5 |
|
MD5 | f11bf5adf40cbb0a5876c39ea3daf8e8 |
|
BLAKE2b-256 | 4ad8adc80e5457e24ce706585e7601cfa0dee7666e19cc36d5a5f1b9dd45243e |