Skip to content

Commit

Permalink
Merge pull request #192 from FoamyGuy/adding_more_blinka_repos
Browse files Browse the repository at this point in the history
adding more blinka repos
  • Loading branch information
makermelissa authored Nov 5, 2020
2 parents c01bb3a + b10b211 commit f165e24
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions adabot/circuitpython_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,27 @@
pr_sort_re = re.compile(r"(?<=\(Open\s)(.+)(?=\sdays)")
close_pr_sort_re = re.compile(r"(?<=\(Days\sopen:\s)(.+)(?=\))")

blinka_repos = [
'Adafruit_Blinka',
'Adafruit_Blinka_bleio',
'Adafruit_Blinka_Displayio',
'Adafruit_Python_PlatformDetect',
'Adafruit_Python_PureIO',
'Adafruit_Blinka_PyPortal',
'Adafruit_Python_Extended_Bus'
]

def run_library_checks(validators, bundle_submodules, latest_pylint, kw_args):
"""runs the various library checking functions"""
pylint_info = pypi.get("/pypi/pylint/json")
if pylint_info and pylint_info.ok:
latest_pylint = pylint_info.json()["info"]["version"]
output_handler("Latest pylint is: {}".format(latest_pylint))

repos = common_funcs.list_repos(include_repos=('Adafruit_Blinka',
'CircuitPython_Community_Bundle',
'cookiecutter-adafruit-circuitpython'))
repos = common_funcs.list_repos(include_repos=tuple(blinka_repos) +
("CircuitPython_Community_Bundle",
"cookiecutter-adafruit-circuitpython"))

output_handler("Found {} repos to check.".format(len(repos)))
bundle_submodules = common_funcs.get_bundle_submodules()
output_handler("Found {} submodules in the bundle.".format(len(bundle_submodules)))
Expand Down Expand Up @@ -157,7 +168,7 @@ def run_library_checks(validators, bundle_submodules, latest_pylint, kw_args):
)
insights = lib_insights
if repo["owner"]["login"] == "adafruit":
if repo["name"] == "Adafruit_Blinka":
if repo["name"] in blinka_repos:
insights = blinka_insights
elif repo["name"] == "circuitpython":
insights = core_insights
Expand Down

0 comments on commit f165e24

Please sign in to comment.