Skip to content

fix some lazy code

fix some lazy code #31

Triggered via push January 5, 2026 15:33
Status Failure
Total duration 8s
Artifacts

ruff.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (E501): growattServer/open_api_v1.py#L1357
growattServer/open_api_v1.py:1357:89: E501 Line too long (90 > 88)
Ruff (E501): growattServer/open_api_v1.py#L1350
growattServer/open_api_v1.py:1350:89: E501 Line too long (102 > 88)
Ruff (PLR0912): growattServer/open_api_v1.py#L1308
growattServer/open_api_v1.py:1308:9: PLR0912 Too many branches (15 > 12)
Ruff (PTH123): growattServer/open_api_v1.py#L1295
growattServer/open_api_v1.py:1295:18: PTH123 `open()` should be replaced by `Path.open()`
Ruff (E501): growattServer/open_api_v1.py#L1218
growattServer/open_api_v1.py:1218:89: E501 Line too long (94 > 88)
Ruff (PLR2004): growattServer/open_api_v1.py#L1130
growattServer/open_api_v1.py:1130:42: PLR2004 Magic value used in comparison, consider replacing `19` with a constant variable
Ruff (E501): growattServer/open_api_v1.py#L998
growattServer/open_api_v1.py:998:89: E501 Line too long (90 > 88)
Ruff (PTH123): growattServer/open_api_v1.py#L430
growattServer/open_api_v1.py:430:18: PTH123 `open()` should be replaced by `Path.open()`
Ruff (E501): growattServer/open_api_v1.py#L327
growattServer/open_api_v1.py:327:89: E501 Line too long (99 > 88)
Ruff (E501): growattServer/open_api_v1.py#L314
growattServer/open_api_v1.py:314:89: E501 Line too long (89 > 88)