From 7d4393d7342db57d5502d7da3072164330049b47 Mon Sep 17 00:00:00 2001 From: Kevet Duncombe Date: Thu, 26 Jun 2025 13:44:57 -0500 Subject: [PATCH 1/2] beangulp: Allow passing kwargs to Ingest.__call__() By allowing kwargs, one can pass standalone_mode=False. That makes ingest() return normally rather than calling sys.exit(0). That provides a chance for further processing, for instance splitting the output into multiple files. --- beangulp/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beangulp/__init__.py b/beangulp/__init__.py index eef15a7..21ac74f 100644 --- a/beangulp/__init__.py +++ b/beangulp/__init__.py @@ -326,5 +326,5 @@ def cli(ctx): self.cli = cli - def __call__(self): - return self.cli() + def __call__(self, **kwargs): + return self.cli(**kwargs) From f41c17aad4513dac65849771e7811fc4166b10e6 Mon Sep 17 00:00:00 2001 From: Kevet Duncombe Date: Sat, 28 Jun 2025 09:08:00 -0500 Subject: [PATCH 2/2] Makefile: add required modules to isolated test --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 40a0678..27394c8 100755 --- a/Makefile +++ b/Makefile @@ -3,9 +3,11 @@ # Test in an isolated Python environment. # uv python pin to set the version. test: - (env -u PYTHONPATH uv run --isolated --python 3.13 python -m pytest) + (env -u PYTHONPATH uv run --isolated --python 3.13 \ + --with petl --with pytest Python -m pytest) test-all: for V in 3.7 3.8 3.9 3.10 3.11 3.12 3.13 ; do \ - (env -u PYTHONPATH uv run --isolated --python $$V python -m pytest) ; \ + (env -u PYTHONPATH uv run --isolated --python $$V \ + --with petl --with pytest Python -m pytest) \ done