Closed TolisChal closed 3 weeks ago
Hi @t-imamichi, @woodsp-ibm, @stefan-woerner! I take care of the pylint errors in this PR: https://github.com/qiskit-community/qiskit-optimization/pull/634 Shall I wait for that one to be merged and rebase this one?
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
qiskit_optimization/applications/max_cut.py | 0 | 2 | 0.0% | ||
<!-- | Total: | 27 | 29 | 93.1% | --> |
Totals | |
---|---|
Change from base Build 10312432197: | 0.0% |
Covered Lines: | 4446 |
Relevant Lines: | 4788 |
Thank you for fixing an issue.
I read the changelog of pylint and found that a new check
https://pylint.readthedocs.io/en/latest/whatsnew/3/3.3/index.html#new-checkstoo-many-positional-arguments
was introduced by pylint 3.3.
Because qiskit-optimization already has the following config for
https://github.com/qiskit-community/qiskit-optimization/blob/807d48167caf11cd93bec85f26b34614fb7868da/.pylintrc#L313max-args
, how about adding a similar config for max-positional-args
as follows too?
max-positional-arguments=8
https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/too-many-positional-arguments.html
Let me try the config #637
How about merging #637? Could you take a look at it? You can minimize the change with the config.
I closed #637 following @woodsp-ibm's comment.
LGTM overall. I wrote some comments.
This PR fixes the bug in the max-cut solver as reported in https://github.com/qiskit-community/qiskit-optimization/issues/611