run_formatters
Run the black formatter on the specified files.
def run_formatters(
written_files: list[str],
black_path: str = object(),
stderr: file-like object = sys.stderr
) - > null
Run the black formatter on the specified files.
Parameters
| Name | Type | Description |
|---|---|---|
| written_files | list[str] | A list of file paths that should be processed by the black formatter. |
| black_path | str = object() | The file path to the black executable; if not provided, the function attempts to locate it using system PATH. |
| stderr | file-like object = sys.stderr | The stream where error messages and stack traces are written if the formatter fails to launch. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the function performs in-place formatting of the specified files via a subprocess. |