MCPcopy Index your code
hub / github.com/pex-tool/pex / run_black

Function run_black

scripts/format.py:32–69  ·  view source on GitHub ↗
(*args: str)

Source from the content-addressed store, hash-verified

30
31
32def run_black(*args: str) -> None:
33 with filtered_stream(
34 exclude=r"DEPRECATION: Python 2 support will be removed in the first stable release",
35 dest=sys.stdout,
36 ) as out_fd:
37 subprocess.run(
38 args=[
39 "black",
40 "--color",
41 *args,
42 "build-backend",
43 "docs",
44 "package",
45 "pex",
46 "scripts",
47 "setup.py",
48 "testing",
49 "tests",
50 ],
51 stdout=out_fd,
52 stderr=subprocess.STDOUT,
53 encoding="utf-8",
54 check=True,
55 )
56 subprocess.run(
57 args=[
58 "black",
59 "--color",
60 "--target-version",
61 "py310",
62 *args,
63 "docker",
64 ],
65 stdout=out_fd,
66 stderr=subprocess.STDOUT,
67 encoding="utf-8",
68 check=True,
69 )
70
71
72def run_isort(*args: str) -> None:

Callers 1

mainFunction · 0.85

Calls 2

filtered_streamFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected