Adopt shared ruff rule set (B, N, UP, SIM, C4) #4

Merged
tim merged 1 commit from chore/ruff-rule-set into main 2026-10-12 13:14:41 +00:00
Owner

Rule set from workflow-basics templates/ruff.toml. 17 findings: 8 autofixes (TimeoutError alias, merged with statements in tests), 3 manual fixes (f-string __repr__ with a new characterization test, direct boolean return, lower case local), 6 per-file ignores for names that are public API inherited from python-OBD (OBDCommand/OBDResponse modules, bleserial, ISO_15765_4_11bit_500k, expectEcho, isHex).

Verified on python 3.14: ruff check, ruff format, 183 tests pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98

Rule set from workflow-basics `templates/ruff.toml`. 17 findings: 8 autofixes (TimeoutError alias, merged `with` statements in tests), 3 manual fixes (f-string `__repr__` with a new characterization test, direct boolean return, lower case local), 6 per-file ignores for names that are public API inherited from python-OBD (OBDCommand/OBDResponse modules, `bleserial`, `ISO_15765_4_11bit_500k`, `expectEcho`, `isHex`). Verified on python 3.14: ruff check, ruff format, 183 tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
Adopt shared ruff rule set (B, N, UP, SIM, C4)
All checks were successful
Security / Security scan (pull_request) Successful in 33s
Test / Lint and test (pull_request) Successful in 15s
5cc597b719
TimeoutError alias, merged with statements in tests, f-string repr (with a
characterization test), direct boolean return, lower case local variable.
Per-file ignores for names that are public API inherited from python-OBD.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
tim merged commit 195a630042 into main 2026-10-12 13:14:41 +00:00
tim deleted branch chore/ruff-rule-set 2026-10-12 13:14:41 +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/py-nissan-leaf-obd-ble!4
No description provided.