Skip to content

Commit c8b26be

Browse files
committed
Ignore auto-generated version.py file in copyright check
Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
1 parent 7b2f3bc commit c8b26be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/copyright.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ def _get_files(patterns: List[str]) -> List[str]:
142142

143143

144144
def _dont_copyright(file_path: str) -> bool:
145+
if file_path.endswith("compressed_tensors/version.py"):
146+
return True
147+
145148
with open(file_path, "r") as file:
146149
content = file.read()
147150

@@ -343,4 +346,4 @@ def main():
343346

344347

345348
if __name__ == "__main__":
346-
main()
349+
main()

0 commit comments

Comments
 (0)