treefmt-check
default.checks.x86_64-linux.treefmt
· build #72
· raw
1treefmt v2.5.0ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 123ARG001 Unused function argument: `args`4 --> packages/simplex-phone/phone.py:99:255 |6 99 | async def _cmd_contacts(args: argparse.Namespace) -> int:7 | ^^^^8100 | async with websockets.connect(_url(), max_size=None) as ws:9101 | resp = _unwrap(await _command(ws, "/contacts", "contacts"))10 |1112ASYNC240 Async functions should not use pathlib.Path methods, use trio.Path or anyio.path13 --> packages/simplex-phone/phone.py:118:1214 |15117 | async def _cmd_send_image(args: argparse.Namespace) -> int:16118 | path = Path(args.path).resolve()17 | ^^^^^^^^^^^^^^^^^^^^^^^18119 | composed = [19120 | {20 |2122ASYNC240 Async functions should not use pathlib.Path methods, use trio.Path or anyio.path23 --> packages/simplex-phone/phone.py:135:1224 |25134 | async def _cmd_send_file(args: argparse.Namespace) -> int:26135 | path = Path(args.path).resolve()27 | ^^^^^^^^^^^^^^^^^^^^^^^28136 | composed = [29137 | {30 |3132ASYNC240 Async functions should not use pathlib.Path methods, use trio.Path or anyio.path33 --> packages/simplex-phone/phone.py:146:1234 |35145 | async def _cmd_send_voice(args: argparse.Namespace) -> int:36146 | path = Path(args.path).resolve()37 | ^^^^^^^^^^^^^^^^^^^^^^^38147 | composed = [39148 | {40 |4142Found 5 errors (1 fixed, 4 remaining).4344traversed 486 files45emitted 342 files for processing46formatted 207 files (1 changed) in 930ms47Error: failed to finalise formatting: formatting failures detected