fix warning for subfolders in '/doc/screenshots'

This commit is contained in:
OniriCorpe 2024-03-21 03:09:21 +01:00
parent 7179390b2c
commit 259ebcd127

View file

@ -599,6 +599,8 @@ class App(TestSuite):
for path in os.listdir(app.path + "/doc/screenshots"): for path in os.listdir(app.path + "/doc/screenshots"):
if path == ".gitkeep": if path == ".gitkeep":
continue continue
if os.path.isdir(path):
continue
if all(not path.lower().endswith(ext) for ext in [".jpg", ".jpeg", ".png", ".gif", ".webp"]): if all(not path.lower().endswith(ext) for ext in [".jpg", ".jpeg", ".png", ".gif", ".webp"]):
yield Warning("In the doc/screenshots folder, only .jpg, .jpeg, .png, .webp and .gif are accepted") yield Warning("In the doc/screenshots folder, only .jpg, .jpeg, .png, .webp and .gif are accepted")
break break