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.1.tar.gz.

File metadata

File hashes

Hashes for pre_commit_hook_poetry_auto_semver-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7524214ce7d90d41945996d8d0b4b1cc4b5037f1f8d2b8b6b776f551e1462445
MD5 0a86dac15ad9b6cb8892c96f8dbef20d
BLAKE2b-256 1620b25582ddee5457e3050df69a051be77de1b44b5573da4c8c97d4995b1aad

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pre_commit_hook_poetry_auto_semver-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b21adaed8bacf0ceae73642e7b4d718f1c6512a1b0db799dade39d19e5dd3cfc
MD5 9cfa097b13cf71c8956e1802cf4d432b
BLAKE2b-256 3dfc0d5a4a6a4f7429729dc242347dfe5af9494f11dc1a5e80d20cf6b5db0207

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