Skip to content

Commit cb47e08

Browse files
authored
Merge pull request #153 from sommersoft/fix_cp_org_pylint_validate
circuitpython.org: Implement Pylint Version Validator
2 parents 2920faf + ea15d4e commit cb47e08

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

adabot/update_cp_org_libraries.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from adabot.lib import common_funcs
3131
from adabot.lib import circuitpython_library_validators as cpy_vals
3232
from adabot import github_requests as github
33+
from adabot import pypi_requests as pypi
3334

3435
DO_NOT_VALIDATE = ['CircuitPython_Community_Bundle']
3536

@@ -164,10 +165,16 @@ def get_contributors(repo):
164165
if vals[0].startswith("validate")
165166
]
166167
bundle_submodules = common_funcs.get_bundle_submodules()
168+
169+
latest_pylint = ""
170+
pylint_info = pypi.get("/pypi/pylint/json")
171+
if pylint_info and pylint_info.ok:
172+
latest_pylint = pylint_info.json()["info"]["version"]
173+
167174
validator = cpy_vals.library_validator(
168175
default_validators,
169176
bundle_submodules,
170-
0.0
177+
latest_pylint
171178
)
172179

173180
for repo in repos:

0 commit comments

Comments
 (0)