Skip to content

pre-commit: Add pre-push hook to check package can be uploaded on PyPI

Add a pre-push git hook checking with twine tool if swh package can be successfully uploaded on PyPI when pushing an annotated release tag.

See https://jenkins.softwareheritage.org/job/DDEP/job/pypi-upload/85/console as an example of upload error the hook can prevent.

Merge request reports