Ruff #2
Annotations
10 errors and 1 warning
Run ruff:
custom_components/amshan/__init__.py#L2
custom_components/amshan/__init__.py:2:1: I001 Import block is un-sorted or un-formatted
|
Run ruff:
custom_components/amshan/__init__.py#L6
custom_components/amshan/__init__.py:6:20: TC003 Move standard library import `datetime` into a type-checking block
|
Run ruff:
custom_components/amshan/__init__.py#L9
custom_components/amshan/__init__.py:9:1: UP035 Import from `collections.abc` instead: `Callable`, `Mapping`
|
Run ruff:
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
|
Run ruff:
custom_components/amshan/__init__.py#L34
custom_components/amshan/__init__.py:34:7: D101 Missing docstring in public class
|
Run ruff:
custom_components/amshan/__init__.py#L62
custom_components/amshan/__init__.py:62:12: SIM300 Yoda condition detected
|
Run ruff:
custom_components/amshan/__init__.py#L113
custom_components/amshan/__init__.py:113:23: ARG001 Unused function argument: `hass`
|
Run ruff:
custom_components/amshan/__init__.py#L118
custom_components/amshan/__init__.py:118:89: E501 Line too long (90 > 88)
|
Run ruff:
custom_components/amshan/__init__.py#L141
custom_components/amshan/__init__.py:141:89: E501 Line too long (89 > 88)
|
Run ruff:
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
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading