blark.format.determine_output_filename

blark.format.determine_output_filename(input_filename: Path, write_to: Path | None) Path[source]

Get an output filename based on the input filename and destination path.

Parameters:
input_filenamepathlib.Path

The file the source code comes from.

write_toOptional[pathlib.Path]

The destination path to write to.

Returns:
pathlib.Path

The output filename to write to.