Skip to content

Commit

Permalink
Merge pull request #153 from sommersoft/fix_cp_org_pylint_validate
Browse files Browse the repository at this point in the history
circuitpython.org: Implement Pylint Version Validator
  • Loading branch information
kattni authored Mar 18, 2020
2 parents 2920faf + ea15d4e commit cb47e08
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion adabot/update_cp_org_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from adabot.lib import common_funcs
from adabot.lib import circuitpython_library_validators as cpy_vals
from adabot import github_requests as github
from adabot import pypi_requests as pypi

DO_NOT_VALIDATE = ['CircuitPython_Community_Bundle']

Expand Down Expand Up @@ -164,10 +165,16 @@ def get_contributors(repo):
if vals[0].startswith("validate")
]
bundle_submodules = common_funcs.get_bundle_submodules()

latest_pylint = ""
pylint_info = pypi.get("/pypi/pylint/json")
if pylint_info and pylint_info.ok:
latest_pylint = pylint_info.json()["info"]["version"]

validator = cpy_vals.library_validator(
default_validators,
bundle_submodules,
0.0
latest_pylint
)

for repo in repos:
Expand Down

0 comments on commit cb47e08

Please sign in to comment.