You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This function exits on the first item in the loop. If the if is true, the function returns True. If not, it returns False.
Instead you want to evaluate every item and then return. One way to do this would be to have a marker variable like the following.
valid = True
for file in md_file_ls:
if not file.suffix.lower() in expected_types:
LOGGER.error(f"{package.name} has unexpected file {file.name}")
valid = False
return valid
Prod VM lint_er.py should be good.
The text was updated successfully, but these errors were encountered: