push
github
Adding Clippy Fix (backport #930) and Pin pillow<10 in CI (backport #922) (#931) * Adding fix that clippy warns for (#930) Because of a new Rust update, Clippy now warned for a line of code in cycle_basis.rs in rustworkx-core. This PR fixes that one line so that Clippy passes. (cherry picked from commit d88f18b45) * Pin pillow<10 in CI (#922) Since the recent release of Pillow 10.0.0 the docs CI job has started failing due to an error in Pillow when trying to run the jupyter-execute cell in the `.to_dot()` docstring. It looks like a bug that was introduced in the new release which is being tracked in python-pillow/Pillow#7259 where it's trying to return a jpeg representation of the object from the RGBA data loaded from a PNG. Until the issue is resolved upstream in pillow this commit just caps the version we run in CI via the constraints file. While pillow is an optional dependency and we could cap the version in the extras, this issue isn't severe enough to warrant that, and the typical pillow usage, especially via the rustworkx api (i.e. graphviz_draw() which returns a PIL.Image object) will continue to work as expected with pillow 10.0.0 there isn't a reason to cap more broadly. This is just needed as a workaround to unblock CI. --------- Co-authored-by: danielleodigie <97267313+danielleodigie@users.noreply.github.com> Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
1 of 1 new or added line in 1 file covered. (100.0%)
15004 of 15567 relevant lines covered (96.38%)
20290765.65 hits per line