-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Use PDM & Ruff instead of Poetry+Black+Flake8+isort #82
Conversation
802663a
to
c7e965f
Compare
c7e965f
to
4f179ac
Compare
I'm not crazy about pinning Pillow back, as most upgrades there seem to be to fix a CVE. Does this change the testing framework? (I noticed a bunch of pytest plugins look like they're no longer being installed) These failing tests aren't new because of that, are they? |
I also prefer to avoid long-term pins. Think of this pin as a temporary measure until the issue with the failing tests can be sorted out. Testing framework is unchanged. Which Pytest plugins do you think are no longer being installed? While I modified the linters, as far as I can tell, the list of Pytest-related dependencies has not changed. I had already confirmed that the same tests fail in current |
Ok, let's create an issue for it, so it doesn't get forgotten about. One issue I've run into previously is that the tests will fail if the generated image from Pillow isn't a bit-perfect match of the previous results. Would you run the "regenerate image" command, check to make sure they visually match, and then re-run the tests with new images? This doesn't have to hold up this PR, but might be the simplest way to solve these "failing" tests. The code is thus (you'll need Pillow v10 installed; pulled from the Readme): >>> from pelican.plugins.image_process.test_image_process import generate_test_images
>>> generate_test_images()
36 test images generated!
Disregard. I was reviewing it on my phone this morning, and the diff view was unclear. Now on the computer, it's easy to see it's staying the same. Otherwise, it looks good. Feel free to merge! |
4f179ac
to
0231fac
Compare
I followed the provided instructions, but running I did a few experiments and tracked the problem down to Pillow 10.3.0, which introduced some change that causes those four tests to fail — a problem that is also present with the current Pillow 10.4.0. So I adjusted the pin to expand the range to: I'll merge this for now. See below for a link to a new issue I created to track the problem with Pillow 10.3+. |
This also pins Pillow to 9.x, since I observed four test failures when running tests on 10.x: