build: justfile allows version

This commit is contained in:
Deepak Mallubhotla 2024-05-01 15:49:01 -05:00
parent 6dc66b1c27
commit 406a1485da
Signed by: deepak
GPG Key ID: BEBAEBF28083E022

View File

@ -46,9 +46,15 @@ fmt:
find deepdog -type f -name "*.py" -exec sed -i -e 's/ /\t/g' {} \;
find tests -type f -name "*.py" -exec sed -i -e 's/ /\t/g' {} \;
# release the app, checking that our working tree is clean and ready for release
release:
./scripts/release.sh
# release the app, checking that our working tree is clean and ready for release, optionally takes target version
release version="":
#!/usr/bin/env bash
set -euxo pipefail
if [[ -n "{{version}}" ]]; then
./scripts/release.sh {{version}}
else
./scripts/release.sh
fi
htmlcov:
poetry run pytest --cov-report=html