Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion adabot/circuitpython_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ def print_issue_overview(*insights):
startup_message.append(" - Report output will be saved to: {}".format(output_filename))

validators = []
validator_names = []
if cmd_line_args.validator:
if cmd_line_args.validator != "all":
validators = []
Expand All @@ -423,7 +424,7 @@ def print_issue_overview(*insights):

startup_message.append(" - These validators will run: {}".format(", ".join(validator_names)))

if "validate_contents" not in validators:
if "validate_contents" not in validator_names:
validator_kwarg_list["validate_contents_quiet"] = True
validators.insert(0, [val[1] for val in default_validators if "validate_contents" in val[0]][0])

Expand Down
2 changes: 1 addition & 1 deletion adabot/lib/circuitpython_library_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def validate_contents(self, repo):
if len(examples_list) < 1:
errors.append(ERROR_MISSING_EXAMPLE_FILES)
else:
lib_name = repo["name"][repo["name"].rfind("_") + 1:].lower()
lib_name = repo["name"][repo["name"].rfind("CircuitPython_") + 14:].lower()
all_have_name = True
simpletest_exists = False
for example in examples_list:
Expand Down