Skip to content

Night;y CI failing with latest pylint #1346

@woodsp-ibm

Description

@woodsp-ibm

pylint released a new version on Feb 25th and since then CI has been failing the nightly runs. Here is the log for the pylint checks

************* Module qiskit_nature.second_q.operators.spin_op
Warning: qiskit_nature/second_q/operators/spin_op.py:278:20: R1731: Consider using 'max_index = max(max_index, index)' instead of unnecessary if block (consider-using-max-builtin)
************* Module qiskit_nature.second_q.operators.fermionic_op
Warning: qiskit_nature/second_q/operators/fermionic_op.py:219:20: R1731: Consider using 'max_index = max(max_index, index)' instead of unnecessary if block (consider-using-max-builtin)
************* Module qiskit_nature.second_q.operators.bosonic_op
Warning: qiskit_nature/second_q/operators/bosonic_op.py:217:20: R1731: Consider using 'max_index = max(max_index, index)' instead of unnecessary if block (consider-using-max-builtin)
************* Module qiskit_nature.second_q.problems.properties_container
Warning: qiskit_nature/second_q/problems/properties_container.py:83:8: R1737: Use 'yield from' directly instead of yielding each element one by one (use-yield-from)

------------------------------------
Your code has been rated at 10.00/10

make: *** [Makefile:43: lint] Error 8
Error: Process completed with exit code 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions