From 1dbbb92c52f7f0aac6a77fb57f8b93642986a2b7 Mon Sep 17 00:00:00 2001 From: Peter Holloway Date: Thu, 25 Jun 2026 11:47:57 +0100 Subject: [PATCH] chore: Add just task to launch repl with blueapi client $ just repl will now launch a repl (using ptpython) with an initialized BlueapiClient named `bc` using the config from the system tests (the same used by `just serve` to run the server). --- justfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/justfile b/justfile index 7d8280b5b5..4dbe24894e 100644 --- a/justfile +++ b/justfile @@ -34,3 +34,11 @@ system *OPTS: coverage: uv run pytest tests/unit_tests --cov --cov-report html xdg-open htmlcov/index.html + +repl: + #!/usr/bin/env bash + uv run --with ptpython ptpython -i <(cat << EOF + from blueapi.client import BlueapiClient + bc = BlueapiClient.from_config_file("tests/system_tests/config.yaml").with_instrument_session("cm12345-1") + EOF + )