Skip to content

Apply ruff format and tighten lint rules#943

Merged
Kludex merged 1 commit into
mainfrom
chore/ruff-format-config
May 15, 2026
Merged

Apply ruff format and tighten lint rules#943
Kludex merged 1 commit into
mainfrom
chore/ruff-format-config

Conversation

@Kludex
Copy link
Copy Markdown
Member

@Kludex Kludex commented May 15, 2026

Summary

  • Enable W ruleset, set indent width to 2, exclude generated _sync trees from ruff.
  • Reformat the entire codebase with the new ruff config.
  • Replace blind pytest.raises(Exception) in connection pool tests with RemoteProtocolError / ConnectError (fixes B017).

Test plan

  • ./scripts/lint clean
  • ./scripts/check clean
  • Full test suite passes

AI Disclaimer

This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.

Enable W ruleset, set indent width to 2, exclude generated sync sources from
ruff. Reformat the codebase accordingly and replace blind `pytest.raises(Exception)`
with concrete exception types in connection pool tests.
@Kludex Kludex enabled auto-merge (squash) May 15, 2026 14:15
@Kludex Kludex merged commit 6e62733 into main May 15, 2026
11 checks passed
@Kludex Kludex deleted the chore/ruff-format-config branch May 15, 2026 14:15
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.

1 participant