this derivation will be built: /nix/store/hfc6380qgqsqig9igvzkim935bapzxyb-treefmt-check.drv building '/nix/store/hfc6380qgqsqig9igvzkim935bapzxyb-treefmt-check.drv' on 'ssh-ng://customer@mac02.m.ntd.one' building '/nix/store/hfc6380qgqsqig9igvzkim935bapzxyb-treefmt-check.drv' treefmt-check> treefmt v2.5.0traversed 157 files treefmt-check> emitted 93 files for processing treefmt-check> formatted 93 files (2 changed) in 1.656s treefmt-check> M packages/harvest-invoicer/src/harvest_invoicer/app.py treefmt-check> M packages/harvest-invoicer/tests/test_app.py treefmt-check> diff --git a/packages/harvest-invoicer/src/harvest_invoicer/app.py b/packages/harvest-invoicer/src/harvest_invoicer/app.py treefmt-check> index 9b06d9b..ffa4806 100644 treefmt-check> --- a/packages/harvest-invoicer/src/harvest_invoicer/app.py treefmt-check> +++ b/packages/harvest-invoicer/src/harvest_invoicer/app.py treefmt-check> @@ -406,6 +406,7 @@ def create_app( treefmt-check> clients_map: dict[str, dict[str, str]] = app.state["clients"] # type: ignore[attr-defined] treefmt-check> key = request.form.get("client_key", "").strip() treefmt-check> entry = clients_map.get(key) treefmt-check> + treefmt-check> def rows_and_totals() -> Response: treefmt-check> return Response( treefmt-check> _render_rows(inv) + _render_totals(inv), content_type="text/html" treefmt-check> diff --git a/packages/harvest-invoicer/tests/test_app.py b/packages/harvest-invoicer/tests/test_app.py treefmt-check> index 310115e..0996406 100644 treefmt-check> --- a/packages/harvest-invoicer/tests/test_app.py treefmt-check> +++ b/packages/harvest-invoicer/tests/test_app.py treefmt-check> @@ -420,9 +420,7 @@ class TestBillToSwitch: treefmt-check> assert b"Domestic S.L." in preview.data treefmt-check> assert b"Numtide Sarl" not in preview.data treefmt-check> treefmt-check> - def test_switch_applies_vat_and_extras_keeps_lines( treefmt-check> - self, tmp_path: Path treefmt-check> - ) -> None: treefmt-check> + def test_switch_applies_vat_and_extras_keeps_lines(self, tmp_path: Path) -> None: treefmt-check> app = self._make_app(tmp_path) treefmt-check> with app.test_client() as c: treefmt-check> # Edit a harvest line first: the edit must survive the switch error: build of '/nix/store/hfc6380qgqsqig9igvzkim935bapzxyb-treefmt-check.drv' on 'ssh-ng://customer@mac02.m.ntd.one' failed: Cannot build '/nix/store/hfc6380qgqsqig9igvzkim935bapzxyb-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/l79h6rz9v6qdhv8c4qg99pdk4diydixf-treefmt-check Last 25 log lines: > --- a/packages/harvest-invoicer/src/harvest_invoicer/app.py > +++ b/packages/harvest-invoicer/src/harvest_invoicer/app.py > @@ -406,6 +406,7 @@ def create_app( > clients_map: dict[str, dict[str, str]] = app.state["clients"] # type: ignore[attr-defined] > key = request.form.get("client_key", "").strip() > entry = clients_map.get(key) > + > def rows_and_totals() -> Response: > return Response( > _render_rows(inv) + _render_totals(inv), content_type="text/html" > diff --git a/packages/harvest-invoicer/tests/test_app.py b/packages/harvest-invoicer/tests/test_app.py > index 310115e..0996406 100644 > --- a/packages/harvest-invoicer/tests/test_app.py > +++ b/packages/harvest-invoicer/tests/test_app.py > @@ -420,9 +420,7 @@ class TestBillToSwitch: > assert b"Domestic S.L." in preview.data > assert b"Numtide Sarl" not in preview.data > > - def test_switch_applies_vat_and_extras_keeps_lines( > - self, tmp_path: Path > - ) -> None: > + def test_switch_applies_vat_and_extras_keeps_lines(self, tmp_path: Path) -> None: > app = self._make_app(tmp_path) > with app.test_client() as c: > # Edit a harvest line first: the edit must survive the switch For full logs, run: nix log /nix/store/hfc6380qgqsqig9igvzkim935bapzxyb-treefmt-check.drv error: Cannot build '/nix/store/hfc6380qgqsqig9igvzkim935bapzxyb-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/l79h6rz9v6qdhv8c4qg99pdk4diydixf-treefmt-check