From 259ebcd127f691eae5e329c2bbbf2725d526956f Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Thu, 21 Mar 2024 03:09:21 +0100 Subject: [PATCH] fix warning for subfolders in '/doc/screenshots' --- package_linter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package_linter.py b/package_linter.py index 18c0b52..9da6b08 100755 --- a/package_linter.py +++ b/package_linter.py @@ -599,6 +599,8 @@ class App(TestSuite): 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