Add N, UP and SIM to the ruff rule set #3

Merged
tim merged 1 commit from chore/ruff-rule-set into main 2026-10-12 15:20:52 +00:00
Owner

Adds pep8-naming, pyupgrade and simplify to the existing rule set. 88 findings: 85 datetime.UTC aliases (autofix, tests only), 1 collapsed nested if in learning_engine.py, 1 dict.keys() in a test, 1 if with identical arms.

No behaviour change. Verified on python 3.14: ruff check, ruff format, bandit, 225 tests pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98

Adds pep8-naming, pyupgrade and simplify to the existing rule set. 88 findings: 85 `datetime.UTC` aliases (autofix, tests only), 1 collapsed nested `if` in `learning_engine.py`, 1 `dict.keys()` in a test, 1 `if` with identical arms. No behaviour change. Verified on python 3.14: ruff check, ruff format, bandit, 225 tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
Add N, UP and SIM to the ruff rule set and fix findings
All checks were successful
CI / Lint and test (pull_request) Successful in 1m31s
Hassfest / Validate integration (pull_request) Successful in 12s
Security / Security scan (pull_request) Successful in 12s
cfb2d33566
85 datetime.UTC aliases (autofix), one collapsed nested if, one dict.keys().
Behaviour unchanged: 225 tests pass on Python 3.14.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
tim merged commit 9a20f8fdfb into main 2026-10-12 15:20:52 +00:00
tim deleted branch chore/ruff-rule-set 2026-10-12 15:20:52 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tim/hass-smart-forecast-solar!3
No description provided.