Add 'do not edit' comment to generated files (#103923)
parent
7ab4d9793a
commit
1610dd94f9
|
@ -1,3 +1,5 @@
|
||||||
|
# Automatically generated by gen_requirements_all.py, do not edit
|
||||||
|
|
||||||
aiodiscover==1.5.1
|
aiodiscover==1.5.1
|
||||||
aiohttp-fast-url-dispatcher==0.1.0
|
aiohttp-fast-url-dispatcher==0.1.0
|
||||||
aiohttp-zlib-ng==0.1.1
|
aiohttp-zlib-ng==0.1.1
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Automatically generated by gen_requirements_all.py, do not edit
|
||||||
|
|
||||||
-c homeassistant/package_constraints.txt
|
-c homeassistant/package_constraints.txt
|
||||||
|
|
||||||
# Home Assistant Core
|
# Home Assistant Core
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
# Home Assistant Core, full dependency set
|
# Home Assistant Core, full dependency set
|
||||||
|
# Automatically generated by gen_requirements_all.py, do not edit
|
||||||
|
|
||||||
-r requirements.txt
|
-r requirements.txt
|
||||||
|
|
||||||
# homeassistant.components.aemet
|
# homeassistant.components.aemet
|
||||||
|
|
|
@ -182,6 +182,10 @@ get-mac==1000000000.0.0
|
||||||
charset-normalizer==3.2.0
|
charset-normalizer==3.2.0
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
GENERATED_MESSAGE = (
|
||||||
|
f"# Automatically generated by {Path(__file__).name}, do not edit\n\n"
|
||||||
|
)
|
||||||
|
|
||||||
IGNORE_PRE_COMMIT_HOOK_ID = (
|
IGNORE_PRE_COMMIT_HOOK_ID = (
|
||||||
"check-executables-have-shebangs",
|
"check-executables-have-shebangs",
|
||||||
"check-json",
|
"check-json",
|
||||||
|
@ -354,6 +358,7 @@ def generate_requirements_list(reqs: dict[str, list[str]]) -> str:
|
||||||
def requirements_output() -> str:
|
def requirements_output() -> str:
|
||||||
"""Generate output for requirements."""
|
"""Generate output for requirements."""
|
||||||
output = [
|
output = [
|
||||||
|
GENERATED_MESSAGE,
|
||||||
"-c homeassistant/package_constraints.txt\n",
|
"-c homeassistant/package_constraints.txt\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# Home Assistant Core\n",
|
"# Home Assistant Core\n",
|
||||||
|
@ -368,6 +373,7 @@ def requirements_all_output(reqs: dict[str, list[str]]) -> str:
|
||||||
"""Generate output for requirements_all."""
|
"""Generate output for requirements_all."""
|
||||||
output = [
|
output = [
|
||||||
"# Home Assistant Core, full dependency set\n",
|
"# Home Assistant Core, full dependency set\n",
|
||||||
|
GENERATED_MESSAGE,
|
||||||
"-r requirements.txt\n",
|
"-r requirements.txt\n",
|
||||||
]
|
]
|
||||||
output.append(generate_requirements_list(reqs))
|
output.append(generate_requirements_list(reqs))
|
||||||
|
@ -379,8 +385,7 @@ def requirements_test_all_output(reqs: dict[str, list[str]]) -> str:
|
||||||
"""Generate output for test_requirements."""
|
"""Generate output for test_requirements."""
|
||||||
output = [
|
output = [
|
||||||
"# Home Assistant tests, full dependency set\n",
|
"# Home Assistant tests, full dependency set\n",
|
||||||
f"# Automatically generated by {Path(__file__).name}, do not edit\n",
|
GENERATED_MESSAGE,
|
||||||
"\n",
|
|
||||||
"-r requirements_test.txt\n",
|
"-r requirements_test.txt\n",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -425,7 +430,8 @@ def requirements_pre_commit_output() -> str:
|
||||||
def gather_constraints() -> str:
|
def gather_constraints() -> str:
|
||||||
"""Construct output for constraint file."""
|
"""Construct output for constraint file."""
|
||||||
return (
|
return (
|
||||||
"\n".join(
|
GENERATED_MESSAGE
|
||||||
|
+ "\n".join(
|
||||||
sorted(
|
sorted(
|
||||||
{
|
{
|
||||||
*core_requirements(),
|
*core_requirements(),
|
||||||
|
|
Loading…
Reference in New Issue