Skip to content

chore(lint): enable ruff E713 (not-in style) - #4777

Merged
springfall2008 merged 1 commit into
mainfrom
chore/ruff-e713
Aug 27, 2026
Merged

chore(lint): enable ruff E713 (not-in style)#4777
springfall2008 merged 1 commit into
mainfrom
chore/ruff-e713

Conversation

@chalfontchubby

Copy link
Copy Markdown
Collaborator

Enables ruff's E713 rule (not x in yx not in y) and fixes the 2 sites it caught. First of a stack progressively turning on the rules from #2198, one rule per PR.

Summary

  • 2 sites in inverter.py and predbat.py rewritten to the idiomatic not in form - purely style, semantically identical.

Test plan

  • ./run_pre_commit passes (ruff, black, cspell, docstrings)
  • Full quick test suite passes

Part of the #2198 linter-complaint cleanup - only F401 was ever
turned on after ruff joined pre-commit.
@springfall2008
springfall2008 merged commit 971dbcc into main Aug 27, 2026
2 checks passed
@springfall2008
springfall2008 deleted the chore/ruff-e713 branch August 27, 2026 17:40
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