You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable ruff PGH and replace blanket noqa/type ignore directives
Adds PGH (pygrep-hooks) to the ruff rule selection so blanket
`# type: ignore` and `# flake8: noqa` directives are flagged. All 12
existing violations are converted to specific codes:
- 10 `# type: ignore` -> `# type: ignore[attr-defined]` on
`from .api_pb2 import (...)` blocks (protobuf-generated module
lacks stubs for its dynamically-emitted symbols).
- 1 `# type: ignore` -> `# type: ignore[union-attr]` on the
HomeassistantServiceMap iteration in `_convert_homeassistant_service_map`
(mypy widens the iter element to `str | Any` after the dict
isinstance branch).
- `# flake8: noqa` on `aioesphomeapi/__init__.py` -> `# ruff: noqa: F401, F403`
(file is the public re-export surface; F401 covers the unused-name
warnings on each re-export and F403 covers the `from .model import *`).
Follows the cadence of esphome#1678 (PTH) and esphome#1679 (PT006/PT007) and esphome#1683
(B) -- one ruff family at a time.
0 commit comments