Take indentation into account for import-from wrapping (#693)

This commit is contained in:
Charlie Marsh
2022-11-11 23:45:04 -05:00
committed by GitHub
parent a21fe716f2
commit 8df3a5437a

View File

@@ -64,7 +64,7 @@ pub fn check_imports(
// Generate the sorted import block.
let expected = format_imports(
body,
&settings.line_length,
&(settings.line_length - indentation.len()),
&settings.src,
&settings.isort.known_first_party,
&settings.isort.known_third_party,