nixbot

builds

failed x86_64-linux.pkgs-formatter-check build #57 · raw · ·

1this derivation will be built:2  /nix/store/79s0k7xmnfvh3yfnag07a455fnfccgx5-treefmt-check.drv3building '/nix/store/79s0k7xmnfvh3yfnag07a455fnfccgx5-treefmt-check.drv'4treefmt-check> treefmt v2.5.0ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 15treefmt-check> 6treefmt-check> PLR0911 Too many return statements (7 > 6)7treefmt-check>    --> packages/harvest-invoicer/src/harvest_invoicer/app.py:875:98treefmt-check>     |9treefmt-check> 874 |     @app.post("/settings/clients/save")10treefmt-check> 875 |     def settings_clients_save() -> str:11treefmt-check>     |         ^^^^^^^^^^^^^^^^^^^^^12treefmt-check> 876 |         """Add or update a clients.json entry (file + running session)."""13treefmt-check> 877 |         clients_map: dict[str, dict[str, object]] = app.state["clients"]  # type: ignore[attr-defined]14treefmt-check>     |15treefmt-check> 16treefmt-check> TC003 Move standard library import `collections.abc.Callable` into a type-checking block17treefmt-check>   --> packages/harvest-invoicer/src/harvest_invoicer/i18n.py:15:2918treefmt-check>    |19treefmt-check> 13 | from __future__ import annotations20treefmt-check> 14 |21treefmt-check> 15 | from collections.abc import Callable22treefmt-check>    |                             ^^^^^^^^23treefmt-check> 16 |24treefmt-check> 17 | TRANSLATIONS: dict[str, dict[str, str]] = {25treefmt-check>    |26treefmt-check> help: Move into type-checking block27treefmt-check> 28treefmt-check> Found 2 errors.29treefmt-check> No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).30treefmt-check> 31treefmt-check> traversed 168 files32treefmt-check> emitted 95 files for processing33treefmt-check> formatted 88 files (0 changed) in 2.726s34treefmt-check> Error: failed to finalise formatting: formatting failures detected35error: Cannot build '/nix/store/79s0k7xmnfvh3yfnag07a455fnfccgx5-treefmt-check.drv'.36       Reason: builder failed with exit code 1.37       Output paths:38         /nix/store/rn8hm1k9xfdzyfjkidh3m1y5gid4md9w-treefmt-check39       Last 25 log lines:40       > 875 |     def settings_clients_save() -> str:41       >     |         ^^^^^^^^^^^^^^^^^^^^^42       > 876 |         """Add or update a clients.json entry (file + running session)."""43       > 877 |         clients_map: dict[str, dict[str, object]] = app.state["clients"]  # type: ignore[attr-defined]44       >     |45       >46       > TC003 Move standard library import `collections.abc.Callable` into a type-checking block47       >   --> packages/harvest-invoicer/src/harvest_invoicer/i18n.py:15:2948       >    |49       > 13 | from __future__ import annotations50       > 14 |51       > 15 | from collections.abc import Callable52       >    |                             ^^^^^^^^53       > 16 |54       > 17 | TRANSLATIONS: dict[str, dict[str, str]] = {55       >    |56       > help: Move into type-checking block57       >58       > Found 2 errors.59       > No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).60       >61       > traversed 168 files62       > emitted 95 files for processing63       > formatted 88 files (0 changed) in 2.726s64       > Error: failed to finalise formatting: formatting failures detected65       For full logs, run:66         nix log /nix/store/79s0k7xmnfvh3yfnag07a455fnfccgx5-treefmt-check.drv