Skip to content
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

add ruff #497

Merged
merged 4 commits into from
Oct 1, 2024
Merged

add ruff #497

merged 4 commits into from
Oct 1, 2024

Conversation

cqc-melf
Copy link
Collaborator

@cqc-melf cqc-melf commented Sep 30, 2024

Description

add ruff check to the CI

Related issues

Please mention any github issues addressed by this PR.

Checklist

  • I have performed a self-review of my code.
  • I have commented hard-to-understand parts of my code.
  • I have made corresponding changes to the public API documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the changelog with any user-facing changes.

print("2) Visit " + link)
print("3) Enter code '" + code + "'")
print("4) Enter your Microsoft credentials")
print("To sign in:") # noqa: T201
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was not fully sure which prints to keep, and which to remove. I think some of them might be helpful, but I removed some of them. Happy to discuss this and add the removed prints back in.

@@ -116,7 +118,7 @@ def get_detection_circuit(circuit: Circuit, n_device_qubits: int) -> Circuit:
detection_circuit.Measure(qb, bb)
postselection_qubits.append(qb)

for q in end_circuit_measures:
for ps_b_index, q in enumerate(end_circuit_measures):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how helpful this is, because there is still the second variable around?


line-length = 88

extend-exclude = ["examples"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have excluded the examples notebooks, happy to add this later on is this would be helpful?

@cqc-melf cqc-melf marked this pull request as ready for review October 1, 2024 08:56
@cqc-melf cqc-melf requested a review from yao-cqc as a code owner October 1, 2024 08:56
@cqc-melf cqc-melf requested review from cqc-alec and removed request for yao-cqc October 1, 2024 08:56
Copy link
Collaborator

@cqc-alec cqc-alec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor suggestions.

tests/conftest.py Outdated Show resolved Hide resolved
tests/unit/api1_test.py Outdated Show resolved Hide resolved
tests/unit/api1_test.py Outdated Show resolved Hide resolved
tests/unit/api1_test.py Outdated Show resolved Hide resolved
tests/unit/api1_test.py Outdated Show resolved Hide resolved
tests/unit/api1_test.py Outdated Show resolved Hide resolved
tests/unit/api1_test.py Outdated Show resolved Hide resolved
Co-authored-by: Alec Edgington <54802828+cqc-alec@users.noreply.github.com>
tests/conftest.py Outdated Show resolved Hide resolved
@cqc-melf
Copy link
Collaborator Author

cqc-melf commented Oct 1, 2024

Just some minor suggestions.

Thank you! Should be all updated now.

@cqc-melf cqc-melf requested a review from cqc-alec October 1, 2024 11:10
@cqc-melf cqc-melf merged commit 8766005 into main Oct 1, 2024
13 of 14 checks passed
@cqc-melf cqc-melf deleted the melf/add-ruff branch October 1, 2024 11:59
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.

2 participants