Skip to content

Commit fec3c0f

Browse files
authored
Merge pull request #10 from dherrada/master
Made adabot treat folders in the examples folder as examples
2 parents 1a2051e + 4ea3cc8 commit fec3c0f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adabot/circuitpython_libraries.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,7 @@ def validate_contents(repo):
394394
if not examples_list.ok:
395395
errors.append(ERROR_UNABLE_PULL_REPO_EXAMPLES)
396396
examples_list = examples_list.json()
397-
examples_files = [x["name"] for x in examples_list if x["type"] == "file" and x["name"].endswith(".py")]
398-
if not examples_files:
397+
if len(examples_list) < 1:
399398
errors.append(ERROR_MISSING_EXAMPLE_FILES)
400399
else:
401400
errors.append(ERROR_MISSING_EXAMPLE_FOLDER)

0 commit comments

Comments
 (0)