Skip to content

Commit a5464f8

Browse files
authored
Merge pull request #141 from sommersoft/add_community_bundle
Add Community Bundle
2 parents ac11bc6 + c7b4fb8 commit a5464f8

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

adabot/circuitpython_libraries.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ def run_library_checks(validators, bundle_submodules, latest_pylint, kw_args):
113113
latest_pylint = pylint_info.json()["info"]["version"]
114114
output_handler("Latest pylint is: {}".format(latest_pylint))
115115

116-
repos = common_funcs.list_repos(include_repos=('Adafruit_Blinka',))
116+
repos = common_funcs.list_repos(include_repos=('Adafruit_Blinka',
117+
'CircuitPython_Community_Bundle'))
117118
output_handler("Found {} repos to check.".format(len(repos)))
118119
bundle_submodules = common_funcs.get_bundle_submodules()
119120
output_handler("Found {} submodules in the bundle.".format(len(bundle_submodules)))

adabot/lib/circuitpython_library_validators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ def validate_repo_state(self, repo):
186186
errors = []
187187
if repo["has_wiki"]:
188188
errors.append(ERROR_WIKI_DISABLED)
189-
if not repo["license"] and not repo["name"] in BUNDLE_IGNORE_LIST:
189+
if not repo.get("license") and not repo["name"] in BUNDLE_IGNORE_LIST:
190190
errors.append(ERROR_MISSING_LICENSE)
191-
if not repo["permissions"]["push"]:
191+
if not repo.get("permissions", {}).get("push"):
192192
errors.append(ERROR_MISSING_LIBRARIANS)
193193
if (not common_funcs.is_repo_in_bundle(full_repo["clone_url"], self.bundle_submodules)
194194
and not repo["name"] in BUNDLE_IGNORE_LIST):

adabot/update_cp_org_libraries.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
from adabot.lib import circuitpython_library_validators as cpy_vals
3232
from adabot import github_requests as github
3333

34+
DO_NOT_VALIDATE = ['CircuitPython_Community_Bundle']
35+
3436
# Setup ArgumentParser
3537
cmd_line_parser = argparse.ArgumentParser(
3638
description="Adabot utility for updating circuitpython.org libraries info.",
@@ -146,7 +148,7 @@ def get_contributors(repo):
146148

147149
print("\n".join(startup_message))
148150

149-
repos = common_funcs.list_repos()
151+
repos = common_funcs.list_repos(include_repos=("CircuitPython_Community_Bundle",))
150152

151153
new_libs = {}
152154
updated_libs = {}
@@ -196,6 +198,9 @@ def get_contributors(repo):
196198
reviewers.extend(get_revs)
197199
merged_pr_count_total += get_merge_count
198200

201+
if repo_name in DO_NOT_VALIDATE:
202+
continue
203+
199204
# run repo validators to check for infrastructure errors
200205
errors = validator.run_repo_validation(repo)
201206
for error in errors:

0 commit comments

Comments
 (0)