Skip to content

chore: enable ruff SIM108, SIM102, SIM202 in tests#1687

Merged
bdraco merged 1 commit into
masterfrom
enable-ruff-sim-rules
May 16, 2026
Merged

chore: enable ruff SIM108, SIM102, SIM202 in tests#1687
bdraco merged 1 commit into
masterfrom
enable-ruff-sim-rules

Conversation

@bdraco

@bdraco bdraco commented May 16, 2026

Copy link
Copy Markdown
Member

Drops the per-test ignores for SIM108 (use ternary), SIM102 (combine nested if), and SIM202 (use == instead of not !=); fixes the six existing violations they surfaced. The two SIM202 sites in test_dns.py are testing __ne__ directly, so they're rewritten as (x != x) is False to preserve intent without tripping the rule.

@codecov

codecov Bot commented May 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.76%. Comparing base (7d14578) to head (f5ab210).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1687   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files          33       33           
  Lines        3407     3407           
  Branches      463      463           
=======================================
  Hits         3399     3399           
  Misses          5        5           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed-hq

codspeed-hq Bot commented May 16, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 6 untouched benchmarks


Comparing enable-ruff-sim-rules (f5ab210) with master (7d14578)

Open in CodSpeed

@bdraco bdraco marked this pull request as ready for review May 16, 2026 19:49
@bdraco bdraco merged commit 9138f32 into master May 16, 2026
40 checks passed
@bdraco bdraco deleted the enable-ruff-sim-rules branch May 16, 2026 19:49
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