Add url
parent
7df51dc545
commit
699c615d23
|
@ -28,6 +28,9 @@ IGNORE_PACKAGES = (
|
|||
|
||||
IGNORE_PIN = ('colorlog>2.1,<3', 'keyring>=9.3,<10.0', 'urllib3')
|
||||
|
||||
URL_PIN = ('https://home-assistant.io/developers/code_review_platform/'
|
||||
'#1-requirements')
|
||||
|
||||
|
||||
def explore_module(package, explore_children):
|
||||
"""Explore the modules."""
|
||||
|
@ -81,8 +84,9 @@ def gather_modules():
|
|||
|
||||
for req in module.REQUIREMENTS:
|
||||
if req.partition('==')[1] == '' and req not in IGNORE_PIN:
|
||||
errors.append("{}[Please pin requirement {}]"
|
||||
.format(package, req))
|
||||
errors.append(
|
||||
"{}[Please pin requirement {}, see {}]".format(
|
||||
package, req, URL_PIN))
|
||||
reqs.setdefault(req, []).append(package)
|
||||
|
||||
for key in reqs:
|
||||
|
|
Loading…
Reference in New Issue