Skip to content

Add ruff.toml configuration and fix pre-existing lint issues - #9

Merged
azebro merged 2 commits into
devfrom
copilot/sub-pr-8
Feb 23, 2026
Merged

azebro merged 2 commits into
devfrom
copilot/sub-pr-8

Conversation

Copilot AI commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

The ruff check CI step had no configuration file, leaving it running with opaque defaults that may not match the project's coding standards.

Changes

  • ruff.toml — explicit lint configuration:

    • line-length = 110 (matches existing codebase max)
    • Rules: E, W (pycodestyle), F (pyflakes), I (isort), UP (pyupgrade)
    • isort: force-sort-within-sections, known-first-party = ["custom_components.pytap"]
  • Auto-fixed 35 pre-existing violations across 16 files via ruff check --fix:

    • Import ordering (I001) — config_flow.py, coordinator.py, sensor.py, and pytap internals
    • Optional[X]X | None (UP045) — api.py, barcode.py, events.py, parser.py, source.py, state.py
    • typing.Iteratorcollections.abc.Iterator (UP035) — types.py
    • socket.timeoutTimeoutError (UP041) — source.py

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: azebro <1090464+azebro@users.noreply.github.com>
Copilot AI changed the title [WIP] WIP address feedback on HACS compatibility and v1.0.0 release Add ruff.toml configuration and fix pre-existing lint issues Feb 23, 2026
Copilot AI requested a review from azebro February 23, 2026 18:10
@azebro
azebro marked this pull request as ready for review February 23, 2026 18:51
@azebro
azebro merged commit 225f88c into dev Feb 23, 2026
@azebro
azebro deleted the copilot/sub-pr-8 branch June 4, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants