mirror of
https://github.com/esphome/esphome.git
synced 2025-09-03 11:52:20 +01:00
[CI] Print more info for when consts are duplicated (#10166)
This commit is contained in:
@@ -500,7 +500,8 @@ 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(uses)})"
|
f"constant to const.py (Uses: {', '.join(uses)}) in a separate PR. "
|
||||||
|
"See https://developers.esphome.io/contributing/code/#python"
|
||||||
)
|
)
|
||||||
return errs
|
return errs
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user