Skip to content

Commit 98d8d5c

Browse files
committed
Rename old POWER and ENERGY metric members
We still keep the old names but we mark them as deprecated. We need to disable the max line check in flake8 for the whole file because the symbol names are too long, and we can't use per-line overrides because this happens inside a docstring. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent aa619df commit 98d8d5c

File tree

6 files changed

+318
-129
lines changed

6 files changed

+318
-129
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ check-yield-types = false
131131
arg-type-hints-in-docstring = false
132132
arg-type-hints-in-signature = true
133133
allow-init-docstring = true
134+
per-file-ignores = [
135+
# Ignore the max-line-length (E501) because enum values are just too long
136+
"src/frequenz/client/microgrid/metrics/_metric.py:E501",
137+
]
134138

135139
[tool.pylint.similarities]
136140
ignore-comments = ['yes']

0 commit comments

Comments
 (0)