Skip to main content

Verify version in pyproject.toml is not already used

Project description

pyproject-tag-check

I always forget to bump poetry version in pyproject.toml files. That's why I build this simple package. It is pre-commit hook which check that version in pyproject.toml is not used as a tag for given repo URL.

Usage:

Put it in .pre-commit.config.yaml repos and argument must be URL to repo on GH (for example this repo itself https://github.com/rafsaf/pyproject-tag-check).

repos:
  - repo: https://github.com/rafsaf/pyproject-tag-check
    rev: "0.2.0"
    hooks:
      - id: pyproject-tag-check
        args:
          - https://github.com/rafsaf/pyproject-tag-check

If tag 0.2.0 already exists like it does for https://github.com/rafsaf/pyproject-tag-check, the check will not pass.

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

pyproject_tag_check-0.2.0.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

pyproject_tag_check-0.2.0-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

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