-
Notifications
You must be signed in to change notification settings - Fork 118
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
fix: onboard to use ruff #1029
base: main
Are you sure you want to change the base?
fix: onboard to use ruff #1029
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1029 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 135 135
Lines 9033 8999 -34
Branches 1037 1032 -5
=========================================
- Hits 9033 8999 -34 ☔ View full report in Codecov by Sentry. |
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.
Since this changes the code itself, it should be at least fix
, rather than infra
device_parameters: dict[str, Any] | None = None, | ||
device_parameters: Optional[dict[str, Any]] = None, # noqa: UP007 | ||
disable_qubit_rewiring: bool = False, | ||
tags: dict[str, str] | None = None, | ||
inputs: dict[str, float] | None = None, | ||
gate_definitions: dict[tuple[Gate, QubitSet], PulseSequence] | None = None, | ||
tags: Optional[dict[str, str]] = None, # noqa: UP007 | ||
inputs: Optional[dict[str, float]] = None, # noqa: UP007 | ||
gate_definitions: Optional[dict[tuple[Gate, QubitSet], PulseSequence]] = None, # noqa: UP007 | ||
quiet: bool = False, | ||
reservation_arn: str | None = None, |
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.
This used to work, why not anymore?
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.
It still does, I am changing this back in the 3.10 pr
aws_session: AwsSession, | ||
create_task_kwargs: dict[str, Any], | ||
device_arn: str, | ||
device_parameters: Union[dict, BraketSchemaBase], | ||
device_parameters: Union[dict[str, str], BraketSchemaBase], # noqa: UP007 |
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.
Should this be updated to 3.10 syntax?
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.
This gets updated in the 3.10 PR
Issue #, if available:
Description of changes:
An example of how to onboard to ruff with most rules enabled.
For use when upgrading to Python 3.10
Testing done:
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.General
Tests
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.