this derivation will be built: /nix/store/6n8lcivjvh9vf054bc6n1m92pv19dmrm-treefmt-check.drv building '/nix/store/6n8lcivjvh9vf054bc6n1m92pv19dmrm-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> ARG001 Unused function argument: `args` treefmt-check> --> packages/simplex-phone/phone.py:99:25 treefmt-check> | treefmt-check> 99 | async def _cmd_contacts(args: argparse.Namespace) -> int: treefmt-check> | ^^^^ treefmt-check> 100 | async with websockets.connect(_url(), max_size=None) as ws: treefmt-check> 101 | resp = _unwrap(await _command(ws, "/contacts", "contacts")) treefmt-check> | treefmt-check> treefmt-check> ASYNC240 Async functions should not use pathlib.Path methods, use trio.Path or anyio.path treefmt-check> --> packages/simplex-phone/phone.py:118:12 treefmt-check> | treefmt-check> 117 | async def _cmd_send_image(args: argparse.Namespace) -> int: treefmt-check> 118 | path = Path(args.path).resolve() treefmt-check> | ^^^^^^^^^^^^^^^^^^^^^^^ treefmt-check> 119 | composed = [ treefmt-check> 120 | { treefmt-check> | treefmt-check> treefmt-check> ASYNC240 Async functions should not use pathlib.Path methods, use trio.Path or anyio.path treefmt-check> --> packages/simplex-phone/phone.py:135:12 treefmt-check> | treefmt-check> 134 | async def _cmd_send_file(args: argparse.Namespace) -> int: treefmt-check> 135 | path = Path(args.path).resolve() treefmt-check> | ^^^^^^^^^^^^^^^^^^^^^^^ treefmt-check> 136 | composed = [ treefmt-check> 137 | { treefmt-check> | treefmt-check> treefmt-check> ASYNC240 Async functions should not use pathlib.Path methods, use trio.Path or anyio.path treefmt-check> --> packages/simplex-phone/phone.py:146:12 treefmt-check> | treefmt-check> 145 | async def _cmd_send_voice(args: argparse.Namespace) -> int: treefmt-check> 146 | path = Path(args.path).resolve() treefmt-check> | ^^^^^^^^^^^^^^^^^^^^^^^ treefmt-check> 147 | composed = [ treefmt-check> 148 | { treefmt-check> | treefmt-check> treefmt-check> Found 5 errors (1 fixed, 4 remaining). treefmt-check> treefmt-check> traversed 486 files treefmt-check> emitted 342 files for processing treefmt-check> formatted 207 files (1 changed) in 930ms treefmt-check> Error: failed to finalise formatting: formatting failures detected error: Cannot build '/nix/store/6n8lcivjvh9vf054bc6n1m92pv19dmrm-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/8ar18zpkvzwzgqw8nh6yh4xhnkknd2kd-treefmt-check Last 25 log lines: > --> packages/simplex-phone/phone.py:135:12 > | > 134 | async def _cmd_send_file(args: argparse.Namespace) -> int: > 135 | path = Path(args.path).resolve() > | ^^^^^^^^^^^^^^^^^^^^^^^ > 136 | composed = [ > 137 | { > | > > ASYNC240 Async functions should not use pathlib.Path methods, use trio.Path or anyio.path > --> packages/simplex-phone/phone.py:146:12 > | > 145 | async def _cmd_send_voice(args: argparse.Namespace) -> int: > 146 | path = Path(args.path).resolve() > | ^^^^^^^^^^^^^^^^^^^^^^^ > 147 | composed = [ > 148 | { > | > > Found 5 errors (1 fixed, 4 remaining). > > traversed 486 files > emitted 342 files for processing > formatted 207 files (1 changed) in 930ms > Error: failed to finalise formatting: formatting failures detected For full logs, run: nix log /nix/store/6n8lcivjvh9vf054bc6n1m92pv19dmrm-treefmt-check.drv