qiskit-community / qiskit-nature

Qiskit Nature is an open-source, quantum computing, framework for solving quantum mechanical natural science problems.
https://qiskit-community.github.io/qiskit-nature/
Apache License 2.0
305 stars 206 forks source link

Night;y CI failing with latest pylint #1346

Closed woodsp-ibm closed 8 months ago

woodsp-ibm commented 9 months ago

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.