(file: str, original: list[str], reformatted: list[str])
| 100 | |
| 101 | |
| 102 | def make_diff(file: str, original: list[str], reformatted: list[str]) -> list[str]: |
| 103 | return list( |
| 104 | difflib.unified_diff( |
| 105 | original, |
| 106 | reformatted, |
| 107 | fromfile="{}\t(original)".format(file), |
| 108 | tofile="{}\t(reformatted)".format(file), |
| 109 | n=3, |
| 110 | ) |
| 111 | ) |
| 112 | |
| 113 | |
| 114 | class DiffError(Exception): |
no test coverage detected