No description
Find a file
bronsen 3b84520899
Some checks failed
ci/woodpecker/push/workflow Pipeline failed
just: no more --draft; shit gets real
2026-02-21 01:33:58 +01:00
.forgejo/workflows actions: install a python and let's hope the rest will work 2026-02-14 22:02:47 +01:00
.woodpecker ci: move command line arguments into environment variables 2026-02-20 22:53:30 +01:00
__snapshots__/tests tests: new snapshot after we load data from the db 2026-02-14 18:56:48 +01:00
src/teilchensammler_cli codestyle: apparently, ty learned to deal with this situation 2026-02-20 21:28:11 +01:00
.gitignore [git] keep all the sqlite files off of version control 2025-12-08 17:53:44 +01:00
changelog.md just: we has a release thing now! 2026-02-21 01:23:38 +01:00
conftest.py tests: create custom mark for test functions 2026-02-20 21:23:48 +01:00
database.db add database.db hoping it helps on CI 2026-02-14 22:46:24 +01:00
justfile just: no more --draft; shit gets real 2026-02-21 01:33:58 +01:00
mise.toml mise: add difftastic so git can diff as we want 2026-02-20 21:23:08 +01:00
prek.toml tooling: configure prek 2026-02-12 20:31:52 +01:00
pyproject.toml Release version 0.4.1 2026-02-21 01:29:53 +01:00
README.md docs: fiddle with README; just add "just" everywhere 2026-02-19 21:16:57 +01:00
requirements.dev.txt update dependencies 2026-02-14 23:18:05 +01:00
requirements.txt update dependencies 2026-02-14 23:18:05 +01:00
tests.py codestyle: hint at type we actually use 2026-02-20 22:54:02 +01:00
uv.lock just: no more --draft; shit gets real 2026-02-21 01:33:58 +01:00

Teilchensammler

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 has tests.

Running tests

uv run pytest tests.py
# or if you have just
just test

Observing the app's console

The console can be used to observe log messages, since those logs really should not go to the terminal.

You will need two terminals:

  1. one for showing the console,
  2. the other to run the app.

Since we use uv, the incantation is a bit different from the official documenation.

In one terminal:

uv run textual console
# or if you have just
just console

And in the other:

uv run textual run --dev src/teilchensammler_cli/__init__.py
# or if you have just
just run-console

Developing

To re-create bronsen's development environment, sort of, you need several shiny new toys:

  • just to run the recipes from justfile
  • uv for all the python executing stuff, also venv
  • prek as a replacement for pre-commit
  • ruff to lint and format the python code
  • markdownlint-cli2 to keep some sort of consistency in our markdowns

I use just; just uses uv, prek, ruff, and so on. It's indirection and abstraction all the way down.

However, you can also do without all these!

Merge Requests

You know how these work.

Commit style

I prefer simple commit titles, and am not a fan of conventional commits. Do provide as much detail as desired in the message's body. Commit early, commit often; rebase frequently.

Tests

Yes! Please write tests: simple ones, trivial ones; complicated ones, slow ones.

Tests must be written in pytest fashion. Use all the plugins. Tests and fixtures should go into tests.py, until such time the file become too big and unwieldy.

Bug Reports, Feature Requests

Create them by clicking "Issues" at the top of the repo page. Do not worry too much about labels.

Please be specific and provide logs, screenshots, or even a test that replicates the problem.

Architectural Changes

These are unlikely to be accepted. This tool is not intended to scale. There might be web-frontend thing automatically provided by Textual.

Configs for tools the bronsen does not currently use

Oh sure, I'll accept those. Please create a merge request that adds the file. I'll make an effort to update those to the best of my capabilities.

AI

Please don't: this is my little human-created thing.

Creating a new release

(This is so bronsen can forget.)

  • run tests; make sure they pass

  • commit

  • uv version --bump {segment}

    Where segment is one of: major, minor, patch, stable, alpha, beta, rc, post, dev

  • commit

  • push commits

  • use lazygit to create the new version tag

    • remember to prefix it with "v"
  • push the tags, using lazygit