FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: enable ruff SIM108, SIM102, SIM202 in tests by bdraco · Pull Request #1687 · python-zeroconf/python-zeroconf · GitHub

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 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 Bot commented May 16, 2026
edited
Loading

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 98 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 Harness.
📢 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.

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)

bdraco marked this pull request as ready for review May 16, 2026 19:49
bdraco merged commit 9138f32 into master May 16, 2026
40 checks passed
bdraco deleted the enable-ruff-sim-rules branch May 16, 2026 19:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL