Apply swh-py-template v0.2.0
This commit is contained in:
parent
fdeb086f77
commit
e6a35c55b0
3 changed files with 14 additions and 8 deletions
|
@ -43,4 +43,13 @@ repos:
|
|||
pass_filenames: false
|
||||
language: system
|
||||
types: [python]
|
||||
|
||||
- id: twine-check
|
||||
name: twine check
|
||||
description: call twine check when pushing an annotated release tag
|
||||
entry: bash -c "ref=$(git describe) &&
|
||||
[[ $ref =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] &&
|
||||
(python3 -m build --sdist && twine check $(ls -t dist/* | head -1)) || true"
|
||||
pass_filenames: false
|
||||
stages: [pre-push]
|
||||
language: python
|
||||
additional_dependencies: [twine, build]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue