updated just recipes
This commit is contained in:
parent
db8318622c
commit
e69dd80875
1 changed files with 22 additions and 0 deletions
22
justfile
22
justfile
|
@ -2,6 +2,28 @@
|
|||
default:
|
||||
@just --list
|
||||
|
||||
clean:
|
||||
#!/bin/sh
|
||||
if [ ! -d "dist" ] && [ ! -d "__pycache__" ]; then
|
||||
echo "Nothing to clean."
|
||||
exit 0
|
||||
fi
|
||||
if [ -d "dist" ]; then
|
||||
echo "Removing dist/"
|
||||
rm -r dist/
|
||||
fi
|
||||
if [ -d "__pycache__" ]; then
|
||||
echo "Removing __pycache__/"
|
||||
rm -r "__pycache__"
|
||||
fi
|
||||
|
||||
publish:
|
||||
#!/bin/sh
|
||||
just clean
|
||||
uv build
|
||||
export UV_PUBLISH_TOKEN="$(pass show pypi)"
|
||||
uv publish
|
||||
|
||||
format:
|
||||
uv run ruff format
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue