|
99 | 99 | pr_sort_re = re.compile(r"(?<=\(Open\s)(.+)(?=\sdays)")
|
100 | 100 | close_pr_sort_re = re.compile(r"(?<=\(Days\sopen:\s)(.+)(?=\))")
|
101 | 101 |
|
| 102 | +blinka_repos = [ |
| 103 | + 'Adafruit_Blinka', |
| 104 | + 'Adafruit_Blinka_bleio', |
| 105 | + 'Adafruit_Blinka_Displayio', |
| 106 | + 'Adafruit_Python_PlatformDetect', |
| 107 | + 'Adafruit_Python_PureIO', |
| 108 | + 'Adafruit_Blinka_PyPortal', |
| 109 | + 'Adafruit_Python_Extended_Bus' |
| 110 | +] |
| 111 | + |
102 | 112 | def run_library_checks(validators, bundle_submodules, latest_pylint, kw_args):
|
103 | 113 | """runs the various library checking functions"""
|
104 | 114 | pylint_info = pypi.get("/pypi/pylint/json")
|
105 | 115 | if pylint_info and pylint_info.ok:
|
106 | 116 | latest_pylint = pylint_info.json()["info"]["version"]
|
107 | 117 | output_handler("Latest pylint is: {}".format(latest_pylint))
|
108 | 118 |
|
109 |
| - repos = common_funcs.list_repos(include_repos=('Adafruit_Blinka', |
110 |
| - 'CircuitPython_Community_Bundle', |
111 |
| - 'cookiecutter-adafruit-circuitpython')) |
| 119 | + repos = common_funcs.list_repos(include_repos=tuple(blinka_repos) + |
| 120 | + ("CircuitPython_Community_Bundle", |
| 121 | + "cookiecutter-adafruit-circuitpython")) |
| 122 | + |
112 | 123 | output_handler("Found {} repos to check.".format(len(repos)))
|
113 | 124 | bundle_submodules = common_funcs.get_bundle_submodules()
|
114 | 125 | output_handler("Found {} submodules in the bundle.".format(len(bundle_submodules)))
|
@@ -157,7 +168,7 @@ def run_library_checks(validators, bundle_submodules, latest_pylint, kw_args):
|
157 | 168 | )
|
158 | 169 | insights = lib_insights
|
159 | 170 | if repo["owner"]["login"] == "adafruit":
|
160 |
| - if repo["name"] == "Adafruit_Blinka": |
| 171 | + if repo["name"] in blinka_repos: |
161 | 172 | insights = blinka_insights
|
162 | 173 | elif repo["name"] == "circuitpython":
|
163 | 174 | insights = core_insights
|
|
0 commit comments