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

General update to bring the main branch up to date #1471

Merged
merged 23 commits into from
Sep 30, 2024
Merged

Conversation

dcmckayibm
Copy link
Collaborator

@dcmckayibm dcmckayibm commented Sep 27, 2024

Summary

A few main changes

  • Update the pylint to the latest version and fix errors
  • Update workflows to python 3.9 (3.8 is EOL and does not work with the latest packages)
  • Fix deprecation warnings
  • Fix small bug in tomo
  • Any other housekeeping

@dcmckayibm dcmckayibm requested a review from wshanks September 27, 2024 14:27
@coruscating
Copy link
Collaborator

You should also update setup.py to remove "Programming Language :: Python :: 3.8" and bump python_requires=">=3.8".

@dcmckayibm
Copy link
Collaborator Author

You should also update setup.py to remove "Programming Language :: Python :: 3.8" and bump python_requires=">=3.8".

Done @coruscating

Copy link
Collaborator

@wshanks wshanks left a comment

Choose a reason for hiding this comment

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

Looks good. Some of the pylint "fixes" don't make the code better in my opinion but they are the easiest fixes (setting some variable to None that can never be None but will never not be set to the right value before it is used).

@@ -16,7 +16,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8, "3.12"]
python-version: [3.9, "3.12"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this leaves an orphaned 3.8 job on the PR but we can ignore than when merging.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

which one? All the tests seem 3.9 or 3.12 (as far as I can tell)

Copy link
Collaborator

Choose a reason for hiding this comment

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

The branch protection rules were expecting a 3.8 test so it didn't show this PR as ready to merge. I've manually fixed them at 3.9 and 3.12.

@@ -121,6 +121,8 @@ def __init__(
delay_ops = [delay.operation for delay in interleaved_element.get_instructions("delay")]
if delay_ops:
timing = BackendTiming(backend)
else:
timing = None
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yuck, this makes pylint happy but doesn't look any better to me (since the only use of timing below fails if it is None).

test/framework/test_warnings.py Outdated Show resolved Hide resolved
qiskit_experiments/framework/backend_data.py Outdated Show resolved Hide resolved
@dcmckayibm dcmckayibm added the Changelog: Bugfix Include in the "Fixed" section of the changelog label Sep 30, 2024
@dcmckayibm dcmckayibm added this pull request to the merge queue Sep 30, 2024
Merged via the queue into main with commit 02572a3 Sep 30, 2024
11 checks passed
@dcmckayibm dcmckayibm deleted the gen_update branch September 30, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants