Ruff furb implementation#7907
Merged
pavoljuhas merged 12 commits intoquantumlib:mainfrom Feb 23, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7907 +/- ##
=======================================
Coverage 99.62% 99.62%
=======================================
Files 1104 1104
Lines 99339 99317 -22
=======================================
- Hits 98963 98943 -20
+ Misses 376 374 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
pavoljuhas
reviewed
Feb 21, 2026
| flat_new_operations = tuple(ops.flatten_to_ops(new_operations)) | ||
|
|
||
| new_qubits = set() | ||
| new_qubits: set[cirq.LineQubit] = set() |
Collaborator
There was a problem hiding this comment.
I think this should be cirq.Qid
Contributor
Author
There was a problem hiding this comment.
Yeah, I saw that in my local run, but don't really trust my local run. I have some differences locally versus the CI runs and wanted to see what it resulted in here. With the update, I get Found 293 errors in 98 files (checked 1160 source files) from FORCE_COLOR=1 check/mypy.
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding checks for #7505 :
FURB101 - read-whole-file
FURB103 - write-whole-file
FURB105 - print-empty-string
FURB116 - f-string-number-format
FURB132 - check-and-remove-from-set
FURB142 - for-loop-set-mutations
FURB171 - single-item-membership-test