Exclude non-Python files as part of changed-files action

This commit is contained in:
Amin Sadeghi
2024-04-04 15:25:49 -04:00
parent a9c46eeb9c
commit 0df4a95686
2 changed files with 2 additions and 2 deletions
-2
View File
@@ -24,8 +24,6 @@ req = f"ruff{version_specifier}"
# If CHANGED_FILES is not empty, split it into a list; otherwise, use SRC
files_to_check = shlex.split(CHANGED_FILES or SRC)
# Exclude non-Python files
files_to_check = [f for f in files_to_check if f.endswith(".py")]
proc = run(["pipx", "run", req, *shlex.split(ARGS), *files_to_check])