this derivation will be built: /nix/store/79s0k7xmnfvh3yfnag07a455fnfccgx5-treefmt-check.drv building '/nix/store/79s0k7xmnfvh3yfnag07a455fnfccgx5-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 2.726s treefmt-check> Error: failed to finalise formatting: formatting failures detected error: Cannot build '/nix/store/79s0k7xmnfvh3yfnag07a455fnfccgx5-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/rn8hm1k9xfdzyfjkidh3m1y5gid4md9w-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 2.726s > Error: failed to finalise formatting: formatting failures detected For full logs, run: nix log /nix/store/79s0k7xmnfvh3yfnag07a455fnfccgx5-treefmt-check.drv