treefmt v2.5.0ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1 ARG001 Unused function argument: `args` --> packages/simplex-phone/phone.py:99:25 | 99 | async def _cmd_contacts(args: argparse.Namespace) -> int: | ^^^^ 100 | async with websockets.connect(_url(), max_size=None) as ws: 101 | resp = _unwrap(await _command(ws, "/contacts", "contacts")) | ASYNC240 Async functions should not use pathlib.Path methods, use trio.Path or anyio.path --> packages/simplex-phone/phone.py:118:12 | 117 | async def _cmd_send_image(args: argparse.Namespace) -> int: 118 | path = Path(args.path).resolve() | ^^^^^^^^^^^^^^^^^^^^^^^ 119 | composed = [ 120 | { | ASYNC240 Async functions should not use pathlib.Path methods, use trio.Path or anyio.path --> 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