-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ruff - enable and fix pylint-equivalent rules #7420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ruff - enable and fix pylint-equivalent rules #7420
Conversation
Apply the rule for Python sources, ignore rule for Jupyter notebooks.
Remove LazyLoader of `op_tree` after checking that each cirq module can be imported as the first one in Python session.
All such instances were intentional to validate equality logic.
All such instances were intentional to validate unequality logic.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7420 +/- ##
==========================================
- Coverage 98.69% 98.69% -0.01%
==========================================
Files 1112 1112
Lines 97921 97910 -11
==========================================
- Hits 96643 96632 -11
Misses 1278 1278 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
note - this can be reviewed commit-by-commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the tip about reviewing commmit-by-commit.
Enable and fix ruff rules corresponding to enabled pylint checks. Disable pylint `syntax-error` checks as syntax is always checked by ruff. No change in the effective code. Partially implements quantumlib#7371
Enable and fix ruff rules corresponding to enabled pylint checks. Disable pylint `syntax-error` checks as syntax is always checked by ruff. No change in the effective code. Partially implements quantumlib#7371
Enable and fix ruff rules corresponding to enabled pylint checks.
Disable pylint
syntax-error
checks as syntax is always checked by ruff.No change in the effective code.
Partially implements #7371