Modified generator to generate plugins (#700)

Signed-off-by: saimedhi <[email protected]>
This commit is contained in:
Sai Medhini Reddy Maryada
2024-03-22 07:53:28 -04:00
committed by GitHub
parent bd915301e5
commit 25db5d5c8a
8 changed files with 94 additions and 12 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ def add_header_to_file(filepath: str) -> None:
for i, line in enumerate(lines):
if len(line) > 0 and line not in LINES_TO_KEEP:
break
lines = lines[:i] + [LICENSE_HEADER] + lines[i:]
lines = lines[:i] + [LICENSE_HEADER + "\n\n"] + lines[i:]
with open(filepath, mode="w", encoding="utf-8") as file:
file.truncate()
file.write("".join(lines))