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 (must be public repository).
Usage:
Put it in .pre-commit.config.yaml repos and argument must be URL to public 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: "1.0.0"
hooks:
- id: pyproject-tag-check
always_run: true
args:
- https://github.com/rafsaf/pyproject-tag-check
Use always_run: true if check should be performed always, otherwise it will run only when pyproject.toml is changed.
pyproject.toml usually looks like
[tool.poetry]
name = "some-name..."
version = "0.1.0"
If repository is public and tag 0.1.0 already exists like it does for https://github.com/rafsaf/pyproject-tag-check, the check will not pass.
Metadata
Release files for pyproject-tag-check 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyproject_tag_check-1.1.0.tar.gz | 2.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyproject_tag_check-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.9 kB
Release files / pyproject_tag_check-1.1.0.tar.gz
| Download URL | pyproject_tag_check-1.1.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67799c2b6c9795c54cdc8f804d97e95ed89c657d24bf9d5852bb187c5759cbdb
|
|
BLAKE2b-256 checksum How to use checksums |
20e691513c06add720ec958eec2f7ffe3066b147d0d9acaffe03501de41173c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pyproject_tag_check-1.1.0-py3-none-any.whl
| Download URL | pyproject_tag_check-1.1.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31e73ef80ac050e5636ff5a6dd12605331cdf3d201dfb8d028b5aa2c1e8ee6ed
|
|
BLAKE2b-256 checksum How to use checksums |
85c16ff89c680927ca6e55c4c13afea0b5f337d21084acd0ecd83653dde3155f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for pyproject-tag-check 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.