MCPcopy
hub / github.com/psf/black / run

Function run

tests/test_concurrency_manager_shutdown.py:50–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 src.write_text("x=1\n", encoding="utf8")
49
50 async def run() -> None:
51 loop = asyncio.get_running_loop()
52 with ThreadPoolExecutor(max_workers=1) as executor:
53 await concurrency.schedule_formatting(
54 sources={src},
55 fast=False,
56 write_back=WriteBack.DIFF,
57 mode=Mode(),
58 report=Report(),
59 loop=loop,
60 executor=executor,
61 no_cache=True,
62 )
63
64 asyncio.run(run())
65

Callers 5

main.pyFile · 0.85
get_git_tagsFunction · 0.85
blackifyFunction · 0.85
fmtonoff5.pyFile · 0.85

Calls 2

ModeClass · 0.90
ReportClass · 0.90

Tested by

no test coverage detected