From 7d09d585795ff24e9b66eac5a00a0b62cf768068 Mon Sep 17 00:00:00 2001 From: MistEO Date: Fri, 9 Feb 2024 22:02:14 +0800 Subject: [PATCH] Update scoring.py --- .github/scoring.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scoring.py b/.github/scoring.py index 56b4d31..46e1f6b 100644 --- a/.github/scoring.py +++ b/.github/scoring.py @@ -68,5 +68,6 @@ def best_file_score(path_list: typing.List[pathlib.Path]) -> typing.Optional[typ print('Usage: python scoring.py ') 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)