Files
tkmind_go/justfile
T

45 lines
1.1 KiB
Makefile
Raw Normal View History

2024-08-23 16:39:04 -07:00
default:
@just --list --unsorted
test *FLAGS:
uv run pytest tests -m "not integration" {{FLAGS}}
integration *FLAGS:
uv run pytest tests -m integration {{FLAGS}}
format:
2024-09-04 11:44:34 -07:00
uvx ruff check . --fix
uvx ruff format .
2024-08-23 16:39:04 -07:00
coverage *FLAGS:
uv run coverage run -m pytest tests -m "not integration" {{FLAGS}}
uv run coverage report
uv run coverage lcov -o lcov.info
2024-09-17 17:08:38 -04:00
docs:
2024-09-25 14:20:49 -04:00
uv sync && uv run mkdocs serve
ai-exchange-version:
curl -s https://pypi.org/pypi/ai-exchange/json | jq -r .info.version
# bump project version, push, create pr
release version:
uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version {{version}}
ai_exchange_version=$(just ai-exchange-version) && sed -i '' 's/ai-exchange>=.*/ai-exchange>='"${ai_exchange_version}"'\",/' pyproject.toml
git checkout -b release-version-{{version}}
git add pyproject.toml
git commit -m "chore(release): release version {{version}}"
tag_version:
grep 'version' pyproject.toml | cut -d '"' -f 2
tag:
git tag v$(just tag_version)
# this will kick of ci for release
# use this when release branch is merged to main
tag-push:
just tag
git push origin tag v$(just tag_version)