Skip to content

Commit

Permalink
Update scoring.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO authored Feb 9, 2024
1 parent 8522620 commit 7d09d58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,6 @@ def best_file_score(path_list: typing.List[pathlib.Path]) -> typing.Optional[typ
print('Usage: python scoring.py <files>')
exit()

paths = [pathlib.Path(arg) for arg in sys.argv[1:]]
filter_ext = [".md", ".txt", ".png", ".jpg", ".gif", ".bmp"]
paths = [pathlib.Path(arg) for arg in sys.argv[1:] if pathlib.Path(arg).suffix in filter_ext])
best_file_score(paths)

0 comments on commit 7d09d58

Please sign in to comment.