build: justfile allows version
This commit is contained in:
parent
6dc66b1c27
commit
406a1485da
10
justfile
10
justfile
@ -46,9 +46,15 @@ fmt:
|
|||||||
find deepdog -type f -name "*.py" -exec sed -i -e 's/ /\t/g' {} \;
|
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' {} \;
|
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 the app, checking that our working tree is clean and ready for release, optionally takes target version
|
||||||
release:
|
release version="":
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euxo pipefail
|
||||||
|
if [[ -n "{{version}}" ]]; then
|
||||||
|
./scripts/release.sh {{version}}
|
||||||
|
else
|
||||||
./scripts/release.sh
|
./scripts/release.sh
|
||||||
|
fi
|
||||||
|
|
||||||
htmlcov:
|
htmlcov:
|
||||||
poetry run pytest --cov-report=html
|
poetry run pytest --cov-report=html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user