From 9882c0eec480a2edd94dabba9e91ff636b55c769 Mon Sep 17 00:00:00 2001 From: bronsen Date: Mon, 20 Apr 2026 19:37:43 +0200 Subject: [PATCH] just: use those `require()`d tools --- justfile | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/justfile b/justfile index f73a6b9..6b54cb2 100644 --- a/justfile +++ b/justfile @@ -18,47 +18,47 @@ default: # create venv, install dependencies setup: - uv sync + {{ uv }} sync # console to observe log messages console: - uv run textual console + {{ uv }} run textual console # run app with logs going to console run-console: - uv run textual run --dev {{ the_app }} + {{ uv }} run textual run --dev {{ the_app }} # run the app run: - uv run python -m {{ the_app }} + {{ uv }} run python -m {{ the_app }} # Update dependencies to new versions update-deps: - uv lock --upgrade - uv sync + {{ uv }} lock --upgrade + {{ uv }} sync # export dependencies into requirements files exports-deps: - uv export {{ uv_export_options }} --output-file {{ requirements_file }} - uv export {{ uv_export_options }} --output-file {{ requirements_file_dev }} --only-dev + {{ uv }} export {{ uv_export_options }} --output-file {{ requirements_file }} + {{ uv }} export {{ uv_export_options }} --output-file {{ requirements_file_dev }} --only-dev # Run tests, ARGS are passed-through to pytest test *ARGS: - uv run pytest tests.py -m "not final" {{ ARGS }} + {{ uv }} run pytest tests.py -m "not final" {{ ARGS }} alltests *ARGS: - uv run pytest tests.py {{ ARGS }} + {{ uv }} run pytest tests.py {{ ARGS }} # run tests and create coverage reports coverage: - uv run pytest tests.py -m "not final" --cov=src/ --cov-report term --cov-report xml --cov-report html --cov-config {{ pyproject }} + {{ uv }} run pytest tests.py -m "not final" --cov=src/ --cov-report term --cov-report xml --cov-report html --cov-config {{ pyproject }} # lint python, markdown, wheel file names, prek config lint: - uv run ruff check . - markdownlint-cli2 . - uv run twine check --strict dist/* - prek validate-config prek.toml + {{ uv }} run ruff check . + {{ markdownlint }} . + {{ uv }} run twine check --strict dist/* + {{ prek }} validate-config prek.toml release *release_name: setup #!/usr/bin/env fish @@ -66,23 +66,23 @@ release *release_name: setup set -l tag (uv version --short --output-format text) just exports-deps - git add {{ pyproject }} uv.lock {{ requirements_file }} {{ requirements_file_dev }} - git commit -m "Release version $tag" - git tag "v$tag" + {{ git }} add {{ pyproject }} uv.lock {{ requirements_file }} {{ requirements_file_dev }} + {{ git }} commit -m "Release version $tag" + {{ git }} tag "v$tag" - git push - git push origin tag "v$tag" + {{ git }} push + {{ git }} push origin tag "v$tag" just build - fj release create "v$tag: {{ release_name }}" --tag "v$tag" --attach dist/*.whl --body "$body" + {{ fj }} release create "v$tag: {{ release_name }}" --tag "v$tag" --attach dist/*.whl --body "$body" just upload - mv {{ releasenotes }} {{ releasenotes }}.$tag + {{ mv }} {{ releasenotes }} {{ releasenotes }}.$tag # builds a package build: - uv build --wheel --clear + {{ uv }} build --wheel --clear # upload to Package Registry upload: - uv run twine upload --repository code.cbo --config-file ~/.config/pypirc dist/*.whl + {{ uv }} run twine upload --repository code.cbo --config-file ~/.config/pypirc dist/*.whl