Remove unused pytest-black/pytest-isort dev deps that broke unit-test CI#267
Remove unused pytest-black/pytest-isort dev deps that broke unit-test CI#267bennett-elder wants to merge 2 commits into
Conversation
PR Summary by QodoRemove unused pytest-black/pytest-isort to fix pytest startup failure in CI Description
Diagram
High-Level Assessment
Files changed (2)
|
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified FilesNo covered modified files...
|
Code Review by Qodo
1.
|
Describe Changes
Unit-test CI currently fails at pytest startup, before any test runs:
Root cause:
pytest-black(andpytest-isort) are unmaintained and still implement the oldpytest_collect_file(file_path, path, parent)hook; modern pytest removed thepathargument, so a fresh install resolving current pytest crashes during plugin registration. Both were unpinned in thetestextra, so this is a time-bomb that triggered once a newer pytest released.These plugins were also never actually invoked — there is no
--black/--isortinaddopts, and they are referenced nowhere except their own dependency lines. Formatting/lint is handled byruff(already a dev dependency and run in the Quality workflow).This PR removes
pytest-blackandpytest-isortfrom thetestextra. No behavioral change to what is tested; CI collection no longer crashes.Verification
With both plugins uninstalled locally (simulating a fresh CI env) and current pytest 9.1.0:
No
-p no:blackworkaround required.Link to Issues
N/A — CI infrastructure fix.
PR Review Checklist