this derivation will be built: /nix/store/3dl7knlqahcyi8mc6lrs7p22jvs07amn-treefmt-check.drv building '/nix/store/3dl7knlqahcyi8mc6lrs7p22jvs07amn-treefmt-check.drv' on 'ssh-ng://customer@mac02.m.ntd.one' building '/nix/store/3dl7knlqahcyi8mc6lrs7p22jvs07amn-treefmt-check.drv' treefmt-check> treefmt v2.5.0ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1 treefmt-check> treefmt-check> PLR0911 Too many return statements (7 > 6) treefmt-check> --> packages/harvest-invoicer/src/harvest_invoicer/app.py:875:9 treefmt-check> | treefmt-check> 874 | @app.post("/settings/clients/save") treefmt-check> 875 | def settings_clients_save() -> str: treefmt-check> | ^^^^^^^^^^^^^^^^^^^^^ treefmt-check> 876 | """Add or update a clients.json entry (file + running session).""" treefmt-check> 877 | clients_map: dict[str, dict[str, object]] = app.state["clients"] # type: ignore[attr-defined] treefmt-check> | treefmt-check> treefmt-check> TC003 Move standard library import `collections.abc.Callable` into a type-checking block treefmt-check> --> packages/harvest-invoicer/src/harvest_invoicer/i18n.py:15:29 treefmt-check> | treefmt-check> 13 | from __future__ import annotations treefmt-check> 14 | treefmt-check> 15 | from collections.abc import Callable treefmt-check> | ^^^^^^^^ treefmt-check> 16 | treefmt-check> 17 | TRANSLATIONS: dict[str, dict[str, str]] = { treefmt-check> | treefmt-check> help: Move into type-checking block treefmt-check> treefmt-check> Found 2 errors. treefmt-check> No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option). treefmt-check> treefmt-check> traversed 168 files treefmt-check> emitted 95 files for processing treefmt-check> formatted 88 files (0 changed) in 1.422s treefmt-check> Error: failed to finalise formatting: formatting failures detected error: build of '/nix/store/3dl7knlqahcyi8mc6lrs7p22jvs07amn-treefmt-check.drv' on 'ssh-ng://customer@mac02.m.ntd.one' failed: Cannot build '/nix/store/3dl7knlqahcyi8mc6lrs7p22jvs07amn-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/ch53d3yk71n8x6xj4zv80xjb5q63gwnh-treefmt-check Last 25 log lines: > 875 | def settings_clients_save() -> str: > | ^^^^^^^^^^^^^^^^^^^^^ > 876 | """Add or update a clients.json entry (file + running session).""" > 877 | clients_map: dict[str, dict[str, object]] = app.state["clients"] # type: ignore[attr-defined] > | > > TC003 Move standard library import `collections.abc.Callable` into a type-checking block > --> packages/harvest-invoicer/src/harvest_invoicer/i18n.py:15:29 > | > 13 | from __future__ import annotations > 14 | > 15 | from collections.abc import Callable > | ^^^^^^^^ > 16 | > 17 | TRANSLATIONS: dict[str, dict[str, str]] = { > | > help: Move into type-checking block > > Found 2 errors. > No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option). > > traversed 168 files > emitted 95 files for processing > formatted 88 files (0 changed) in 1.422s > Error: failed to finalise formatting: formatting failures detected For full logs, run: nix log /nix/store/3dl7knlqahcyi8mc6lrs7p22jvs07amn-treefmt-check.drv error: Cannot build '/nix/store/3dl7knlqahcyi8mc6lrs7p22jvs07amn-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/ch53d3yk71n8x6xj4zv80xjb5q63gwnh-treefmt-check