From 86ef69821980bd7c0ab888a190f1b13dd22ed9a6 Mon Sep 17 00:00:00 2001 From: bronsen Date: Thu, 19 Feb 2026 21:02:02 +0100 Subject: [PATCH 1/6] just: hide useless recipe --- justfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 5e9a45e..0f7c76b 100644 --- a/justfile +++ b/justfile @@ -18,7 +18,7 @@ console: the_app := "teilchensammler_cli.main" # run app with logs going to console -run-dev: +run-console: uv run textual run --dev {{ the_app }} # run the app @@ -65,6 +65,7 @@ ci: lint # woodpecker-cli exec "whatever" # create a new realese [CURRENTLY USELESS] +[private] release: @echo remember to git tag and update pyproject.toml uv build From dc9b31a5a2eb4419e0b0e8a0177e4000daa2cc57 Mon Sep 17 00:00:00 2001 From: bronsen Date: Thu, 19 Feb 2026 21:14:19 +0100 Subject: [PATCH 2/6] just: collect variables at top of script --- justfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 0f7c76b..29c14fd 100644 --- a/justfile +++ b/justfile @@ -1,3 +1,6 @@ +the_app := "teilchensammler_cli.main" +uv_export_options := "--frozen --format requirements.txt --quiet --no-install-project" + [private] default: @just --list @@ -15,7 +18,6 @@ build: console: uv run textual console -the_app := "teilchensammler_cli.main" # run app with logs going to console run-console: @@ -25,7 +27,6 @@ run-console: run: uv run python -m {{ the_app }} -uv_export_options := "--frozen --format requirements.txt --quiet --no-install-project" # export dependencies into requirements files exports-deps: uv export {{ uv_export_options }} --output-file requirements.txt From 88b22f52e9f5402637921508cc996d1ed81a5484 Mon Sep 17 00:00:00 2001 From: bronsen Date: Thu, 19 Feb 2026 21:14:46 +0100 Subject: [PATCH 3/6] just: reduce number of recipes --- justfile | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/justfile b/justfile index 29c14fd..9d93c45 100644 --- a/justfile +++ b/justfile @@ -45,16 +45,10 @@ test *ARGS: coverage: uv run pytest tests.py --cov=src/ --cov-report term --cov-report xml --cov-report html --cov-config pyproject.toml -# lint python code -lint-python: - uv run ruff check . - -# lint markdown documents -lint-markdown: - markdownlint-cli2 . - # run python and markdown -lint: lint-python lint-markdown +lint: + uv run ruff check . + markdownlint-cli2 . # remove artefacts from dist/ clean: @@ -65,11 +59,6 @@ ci: lint prek run --all-files # woodpecker-cli exec "whatever" -# create a new realese [CURRENTLY USELESS] [private] -release: - @echo remember to git tag and update pyproject.toml - uv build - # upload to package registry - # send newsletter - # take over the world +bump segment: + uv version --bump {{ segment }} From 1cc6924fa6337dde111fe19c022d6916b0df7e6b Mon Sep 17 00:00:00 2001 From: bronsen Date: Thu, 19 Feb 2026 21:15:18 +0100 Subject: [PATCH 4/6] just: match uppercase in description --- justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/justfile b/justfile index 9d93c45..5a555f6 100644 --- a/justfile +++ b/justfile @@ -37,7 +37,7 @@ update-deps: uv lock --upgrade uv sync -# Run tests, args are passed-through to pytest +# Run tests, ARGS are passed-through to pytest test *ARGS: uv run pytest tests.py {{ ARGS }} From 9e92e0fe7152d77622a6af9f498b0f8588b8b17f Mon Sep 17 00:00:00 2001 From: bronsen Date: Thu, 19 Feb 2026 21:16:14 +0100 Subject: [PATCH 5/6] just: remind ourselves now, so we can forget later: unchecked globbing can explode --- justfile | 1 + 1 file changed, 1 insertion(+) diff --git a/justfile b/justfile index 5a555f6..cd5fcf2 100644 --- a/justfile +++ b/justfile @@ -53,6 +53,7 @@ lint: # remove artefacts from dist/ clean: rm dist/*.whl dist/*.tar.gz + # consider xargs, or something that won't explode on many files # pretend we are CI ci: lint From 1a5d552cfc9f7ae4d2ff9810865ebf86e98d74b5 Mon Sep 17 00:00:00 2001 From: bronsen Date: Thu, 19 Feb 2026 21:16:57 +0100 Subject: [PATCH 6/6] docs: fiddle with README; just add "just" everywhere --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a5f2c01..5b14093 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,14 @@ This is a little TUI based on [Textual] for entering new Teilchen and for searching for existing Teilchen. Data is kept in a sqlite database. -It is not yet usable. +It is not yet usable. It has tests. ## Running tests ```sh uv run pytest tests.py +# or if you have just +just test ``` ## Observing the app's console @@ -25,15 +27,18 @@ Since we use uv, the incantation is a bit different from the [official documenat In one terminal: -```shell +```sh uv run textual console +# or if you have just +just console ``` And in the other: -```shell -# run,textual,run! ;) +```sh uv run textual run --dev src/teilchensammler_cli/__init__.py +# or if you have just +just run-console ``` ## Developing