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

Class BlackRunner

tests/test_black.py:108–115  ·  view source on GitHub ↗

Make sure STDOUT and STDERR are kept separate when testing Black via its CLI.

Source from the content-addressed store, hash-verified

106
107
108class BlackRunner(_CliRunner):
109 """Make sure STDOUT and STDERR are kept separate when testing Black via its CLI."""
110
111 def __init__(self) -> None:
112 if Version(imp_version("click")) >= Version("8.2.0"):
113 super().__init__()
114 else:
115 super().__init__(mix_stderr=False) # type: ignore
116
117
118def invokeBlack(

Calls

no outgoing calls