mirror of
https://github.com/esphome/esphome.git
synced 2026-05-29 14:59:38 +08:00
[ci-custom] Directions on constant hoisting (#14637)
This commit is contained in:
+1
-1
@@ -519,7 +519,7 @@ def lint_constants_usage():
|
|||||||
continue
|
continue
|
||||||
errs.append(
|
errs.append(
|
||||||
f"Constant {highlight(constant)} is defined in {len(uses)} files. Please move all definitions of the "
|
f"Constant {highlight(constant)} is defined in {len(uses)} files. Please move all definitions of the "
|
||||||
f"constant to const.py (Uses: {', '.join(str(u) for u in uses)}) in a separate PR. "
|
f"constant to esphome/components/const/__init__.py (Uses: {', '.join(str(u) for u in uses)}) in a separate PR. "
|
||||||
"See https://developers.esphome.io/contributing/code/#python"
|
"See https://developers.esphome.io/contributing/code/#python"
|
||||||
)
|
)
|
||||||
return errs
|
return errs
|
||||||
|
|||||||
Reference in New Issue
Block a user