Ruff #2
Annotations
11 errors and 2 warnings
ruff-format
Process completed with exit code 1.
|
Ruff (I001):
custom_components/amshan/__init__.py#L2
custom_components/amshan/__init__.py:2:1: I001 Import block is un-sorted or un-formatted
|
Ruff (TC003):
custom_components/amshan/__init__.py#L6
custom_components/amshan/__init__.py:6:20: TC003 Move standard library import `datetime` into a type-checking block
|
Ruff (UP035):
custom_components/amshan/__init__.py#L9
custom_components/amshan/__init__.py:9:1: UP035 Import from `collections.abc` instead: `Callable`, `Mapping`
|
Ruff (TC002):
custom_components/amshan/__init__.py#L18
custom_components/amshan/__init__.py:18:42: TC002 Move third-party import `homeassistant.helpers.typing.ConfigType` into a type-checking block
|
Ruff (D101):
custom_components/amshan/__init__.py#L34
custom_components/amshan/__init__.py:34:7: D101 Missing docstring in public class
|
Ruff (SIM300):
custom_components/amshan/__init__.py#L62
custom_components/amshan/__init__.py:62:12: SIM300 Yoda condition detected
|
Ruff (ARG001):
custom_components/amshan/__init__.py#L113
custom_components/amshan/__init__.py:113:23: ARG001 Unused function argument: `hass`
|
Ruff (E501):
custom_components/amshan/__init__.py#L118
custom_components/amshan/__init__.py:118:89: E501 Line too long (90 > 88)
|
Ruff (E501):
custom_components/amshan/__init__.py#L141
custom_components/amshan/__init__.py:141:89: E501 Line too long (89 > 88)
|
Ruff (PLR2004):
custom_components/amshan/__init__.py#L173
custom_components/amshan/__init__.py:173:32: PLR2004 Magic value used in comparison, consider replacing `2` with a constant variable
|
ruff-format
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ruff
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|