Skip to main content

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

  1. poetry install
  2. pre-commit install

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

File details

Details for the file pre_commit_hook_poetry_auto_semver-0.0.3.tar.gz.

File metadata

File hashes

Hashes for pre_commit_hook_poetry_auto_semver-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7b43bb4e55ca66343ed90372173042bb803dc684333b433299598def9d99a574
MD5 cf1191b798e51d3c1e832700ca988fe8
BLAKE2b-256 626aa90e546f2dccbb19e780700ab127af8178e249addd3619f42e28cbb6a649

See more details on using hashes here.

Provenance

File details

Details for the file pre_commit_hook_poetry_auto_semver-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pre_commit_hook_poetry_auto_semver-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 59c09d30973d13ded9ca84bb14ec08fb779a29c7c6ba815ddfa33fab655801d5
MD5 f11bf5adf40cbb0a5876c39ea3daf8e8
BLAKE2b-256 4ad8adc80e5457e24ce706585e7601cfa0dee7666e19cc36d5a5f1b9dd45243e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page