mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
Drop obsolete IGNORE_PIN in gen_requirements_all.py (#145487)
Drop IGNORE_PIN in gen_requirements_all.py
This commit is contained in:
parent
49f9166646
commit
acbfe54c7b
@ -94,8 +94,6 @@ OVERRIDDEN_REQUIREMENTS_ACTIONS = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
IGNORE_PIN = ("colorlog>2.1,<3", "urllib3")
|
|
||||||
|
|
||||||
URL_PIN = (
|
URL_PIN = (
|
||||||
"https://developers.home-assistant.io/docs/"
|
"https://developers.home-assistant.io/docs/"
|
||||||
"creating_platform_code_review.html#1-requirements"
|
"creating_platform_code_review.html#1-requirements"
|
||||||
@ -425,7 +423,7 @@ def process_requirements(
|
|||||||
for req in module_requirements:
|
for req in module_requirements:
|
||||||
if "://" in req:
|
if "://" in req:
|
||||||
errors.append(f"{package}[Only pypi dependencies are allowed: {req}]")
|
errors.append(f"{package}[Only pypi dependencies are allowed: {req}]")
|
||||||
if req.partition("==")[1] == "" and req not in IGNORE_PIN:
|
if req.partition("==")[1] == "":
|
||||||
errors.append(f"{package}[Please pin requirement {req}, see {URL_PIN}]")
|
errors.append(f"{package}[Please pin requirement {req}, see {URL_PIN}]")
|
||||||
reqs.setdefault(req, []).append(package)
|
reqs.setdefault(req, []).append(package)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user