Skip to content

Update pyproject setting, remove pytest.ini and fix ruff findings (#74) #22

Update pyproject setting, remove pytest.ini and fix ruff findings (#74)

Update pyproject setting, remove pytest.ini and fix ruff findings (#74) #22

Triggered via push January 24, 2024 11:35
Status Failure
Total duration 39s
Artifacts

linting.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

11 errors
Ruff (D100): aioelectricitymaps/const.py#L1
aioelectricitymaps/const.py:1:1: D100 Missing docstring in public module
Ruff (D101): aioelectricitymaps/const.py#L6
aioelectricitymaps/const.py:6:7: D101 Missing docstring in public class
Ruff (D401): aioelectricitymaps/decorators.py#L16
aioelectricitymaps/decorators.py:16:5: D401 First line of docstring should be in imperative mood: "Decorator to retry a function with the legacy API if SwitchedToLegacyAPI is raised."
Ruff (E501): aioelectricitymaps/decorators.py#L16
aioelectricitymaps/decorators.py:16:89: E501 Line too long (93 > 88)
Ruff (D101): aioelectricitymaps/electricitymaps.py#L26
aioelectricitymaps/electricitymaps.py:26:7: D101 Missing docstring in public class
Ruff (TRY003): aioelectricitymaps/electricitymaps.py#L52
aioelectricitymaps/electricitymaps.py:52:19: TRY003 Avoid specifying long messages outside the exception class
Ruff (EM102): aioelectricitymaps/electricitymaps.py#L53
aioelectricitymaps/electricitymaps.py:53:17: EM102 Exception must not use an f-string literal, assign to variable first
Ruff (BLE001): aioelectricitymaps/electricitymaps.py#L55
aioelectricitymaps/electricitymaps.py:55:16: BLE001 Do not catch blind exception: `Exception`
Ruff (TRY003): aioelectricitymaps/electricitymaps.py#L56
aioelectricitymaps/electricitymaps.py:56:19: TRY003 Avoid specifying long messages outside the exception class
Ruff (EM102): aioelectricitymaps/electricitymaps.py#L57
aioelectricitymaps/electricitymaps.py:57:17: EM102 Exception must not use an f-string literal, assign to variable first
pylint
Process completed with exit code 1.