INNER CODE UNIT · Python
config
PyCQA/isort · isort/main.py:1085
config = Config(**config_dict)
if show_config:
print(json.dumps(asdict(config), indent=4, separators=(",", ": "), default=_preconvert))
return
if file_names == ["-"]:
file_path = Path(stream_filename) if stream_filename else None
if show_files:
sys.exit("Error: can't show files for streaming input.")
if config.sort_reexports:
sys.exit("Error: --sort-reexports is not supported with streaming input (stdin).")
with _stream_with_preserved_newlines(
sys.stdin if stdin is None else stdin,
mode="r",
) as input_stream:
if check:
incorrectly_sorted = not api.check_stream(
input_stream=input_stream,