nixbot

builds

failed aarch64-darwin.pkgs-formatter-check build #57 · raw · ·

1this derivation will be built:2  /nix/store/3dl7knlqahcyi8mc6lrs7p22jvs07amn-treefmt-check.drv3building '/nix/store/3dl7knlqahcyi8mc6lrs7p22jvs07amn-treefmt-check.drv' on 'ssh-ng://customer@mac02.m.ntd.one'4building '/nix/store/3dl7knlqahcyi8mc6lrs7p22jvs07amn-treefmt-check.drv'5treefmt-check> treefmt v2.5.0ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 16treefmt-check> 7treefmt-check> PLR0911 Too many return statements (7 > 6)8treefmt-check>    --> packages/harvest-invoicer/src/harvest_invoicer/app.py:875:99treefmt-check>     |10treefmt-check> 874 |     @app.post("/settings/clients/save")11treefmt-check> 875 |     def settings_clients_save() -> str:12treefmt-check>     |         ^^^^^^^^^^^^^^^^^^^^^13treefmt-check> 876 |         """Add or update a clients.json entry (file + running session)."""14treefmt-check> 877 |         clients_map: dict[str, dict[str, object]] = app.state["clients"]  # type: ignore[attr-defined]15treefmt-check>     |16treefmt-check> 17treefmt-check> TC003 Move standard library import `collections.abc.Callable` into a type-checking block18treefmt-check>   --> packages/harvest-invoicer/src/harvest_invoicer/i18n.py:15:2919treefmt-check>    |20treefmt-check> 13 | from __future__ import annotations21treefmt-check> 14 |22treefmt-check> 15 | from collections.abc import Callable23treefmt-check>    |                             ^^^^^^^^24treefmt-check> 16 |25treefmt-check> 17 | TRANSLATIONS: dict[str, dict[str, str]] = {26treefmt-check>    |27treefmt-check> help: Move into type-checking block28treefmt-check> 29treefmt-check> Found 2 errors.30treefmt-check> No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).31treefmt-check> 32treefmt-check> traversed 168 files33treefmt-check> emitted 95 files for processing34treefmt-check> formatted 88 files (0 changed) in 1.422s35treefmt-check> Error: failed to finalise formatting: formatting failures detected36error: 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'.37       Reason: builder failed with exit code 1.38       Output paths:39         /nix/store/ch53d3yk71n8x6xj4zv80xjb5q63gwnh-treefmt-check40       Last 25 log lines:41       > 875 |     def settings_clients_save() -> str:42       >     |         ^^^^^^^^^^^^^^^^^^^^^43       > 876 |         """Add or update a clients.json entry (file + running session)."""44       > 877 |         clients_map: dict[str, dict[str, object]] = app.state["clients"]  # type: ignore[attr-defined]45       >     |46       >47       > TC003 Move standard library import `collections.abc.Callable` into a type-checking block48       >   --> packages/harvest-invoicer/src/harvest_invoicer/i18n.py:15:2949       >    |50       > 13 | from __future__ import annotations51       > 14 |52       > 15 | from collections.abc import Callable53       >    |                             ^^^^^^^^54       > 16 |55       > 17 | TRANSLATIONS: dict[str, dict[str, str]] = {56       >    |57       > help: Move into type-checking block58       >59       > Found 2 errors.60       > No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).61       >62       > traversed 168 files63       > emitted 95 files for processing64       > formatted 88 files (0 changed) in 1.422s65       > Error: failed to finalise formatting: formatting failures detected66       For full logs, run:67         nix log /nix/store/3dl7knlqahcyi8mc6lrs7p22jvs07amn-treefmt-check.drv68error: Cannot build '/nix/store/3dl7knlqahcyi8mc6lrs7p22jvs07amn-treefmt-check.drv'.69       Reason: builder failed with exit code 1.70       Output paths:71         /nix/store/ch53d3yk71n8x6xj4zv80xjb5q63gwnh-treefmt-check