Skip to content

Commit

Permalink
fix warning for subfolders in '/doc/screenshots'
Browse files Browse the repository at this point in the history
  • Loading branch information
OniriCorpe committed Mar 21, 2024
1 parent 7179390 commit 259ebcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,8 @@ def doc_dir(app):
for path in os.listdir(app.path + "/doc/screenshots"):
if path == ".gitkeep":
continue
if os.path.isdir(path):
continue
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")
break
Expand Down

0 comments on commit 259ebcd

Please sign in to comment.