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 retworkx to generated module list in the .pylintrc (backport #8867) #8870

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Oct 10, 2022

This is an automatic backport of pull request #8867 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

* Add retworkx to generated module list in the .pylintrc

With the recent release of retworkx 0.12.0 the package has been renamed
to rustworkx. For compatibility the retworkx python namespace continues
to work and instead it just redirects imports to the new name. However,
pylint is unable to reason about this dynamic import redirecting which
causes it to fail in CI. While in 0.23.0 we'll update the requirement to
the rustworkx name in order to unblock CI for the pending 0.22.0 release
this commit adds the retworkx namespace to the list of generated modules
which tells pylint to try not to detect members of the module.

* Expand config and add inline excludes where needed

The earlier config update wasn't sufficient to get pylint to ignore all
retworkx usage. This commit adds additional config entries for retworkx
to try and get pylint to exclude it more thoroughly. Additionally,
even with these global excludes on pylint there are a few places in the
code where additional manual rule disabling was needed to get pylint to
pass (further evidence for #1179).

(cherry picked from commit 2f40849)
@mergify mergify bot requested review from a team and nonhermitian as code owners October 10, 2022 14:56
@mtreinish mtreinish added automerge Changelog: None Do not include in changelog labels Oct 10, 2022
@mergify mergify bot merged commit 18b72ae into stable/0.22 Oct 10, 2022
@mergify mergify bot deleted the mergify/bp/stable/0.22/pr-8867 branch October 10, 2022 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant