Skip to content

Commit

Permalink
Shorten formatter line lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonPacewic committed Aug 6, 2024
1 parent c194b8e commit 191c8cf
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions exporter/SynthesisFusionAddin/tools/verifyIsortFormatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,10 @@ def main() -> None:
continue

print(f"File {files[i]} is not formatted correctly!\nLine: {j + 1}")
print(
"\nOld file state:\n"
+ "\n".join(oldFileState[k].strip() for k in range(max(0, j - 10), min(len(oldFileState), j + 11)))
)
print(
"\nNew file state:\n"
+ "\n".join(newFileState[k].strip() for k in range(max(0, j - 10), min(len(newFileState), j + 11)))
)
oldFileStateRange = range(max(0, j - 10), min(len(oldFileState), j + 11))
print("\nOld file state:\n" + "\n".join(oldFileState[k].strip() for k in oldFileStateRange))
newFileStateRange = range(max(0, j - 10), min(len(newFileState), j + 11))
print("\nNew file state:\n" + "\n".join(newFileState[k].strip() for k in newFileStateRange))
exitCode = 1
break

Expand Down

0 comments on commit 191c8cf

Please sign in to comment.