chore(lint): evaluate remaining Ruff rule families from #1979 incrementally

Author: LearningCircuitCreated Sep 27, 2026Updated Sep 27, 2026

PR #1979 proposed enabling I, B, UP, SIM, C901, PIE, and RUF in Ruff, alongside an 858-file rewrite. It closed unmerged because that generated snapshot became obsolete. PR #3211 later introduced a different set of lint rules in stages. On main at 43061a14ebfff94428fe1a7d441c7eb2a16486af, the Ruff select includes E4/E7/E9, F, S, G, PERF, RET, TRY, T20, and C4, but the #1979 families have not been adopted as a set.

Proposed work

  • Measure current violations for each proposed family on current main; identify any rule already covered by another check.
  • Choose individual rules or small groups with useful signal, documenting any rule declined due to false positives or project conventions.
  • Add chosen rules in focused PRs with current-main fixes, justified exceptions, and relevant tests. Do not replay the old 858-file autofix.
  • Verify Ruff, pre-commit, and tests relevant to any behavior-changing fixes.

Completion criteria

  • The decision for each of I, B, UP, SIM, C901, PIE, and RUF is recorded.
  • Any adopted rule is enforced with a passing current-main check.
  • The obsolete #1979 branch can be retired after its remaining useful work is accounted for.

Context: https://github.com/LearningCircuit/local-deep-research/pull/1979 and https://github.com/LearningCircuit/local-deep-research/pull/3211

Source: LearningCircuit/local-deep-research