fix: add pytest and pytest-cov to dev dependencies#28
Conversation
7e86e89 to
838bf9b
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| pylint = "==3.2.3" | ||
| pyright = "==1.1.398" | ||
| pytest = ">=8.0.0" | ||
| pytest-cov = ">=5.0.0" |
There was a problem hiding this comment.
Unbounded version constraints resolved to unexpected major versions
Low Severity
The pytest and pytest-cov constraints use >= (unbounded) while all other dev dependencies (mypy, pylint, pyright) use exact == pins. This inconsistency already caused the lock file to resolve pytest to 9.0.2 (a whole major version beyond the >= 8.0.0 floor) and pytest-cov to 7.1.0 (two major versions beyond >= 5.0.0). Using ^ or tighter bounds would prevent unintended major-version jumps on future lock regeneration and match the pinning strategy of the other dev dependencies.


Summary
pytestwas never declared as a dependency inpyproject.toml— only[tool.pytest.ini_options]config existed.venvcache happened to contain pytest from a previous manual installpytest >= 8.0.0andpytest-cov >= 5.0.0to[tool.poetry.group.dev.dependencies]Context
PR #27 removed the conditional
if: cache-hit != 'true'onpoetry install, but that alone didn't fix the issue becausepoetry installcorrectly reports "No dependencies to install" when pytest isn't in the lock file.Note
Low Risk
Low risk: changes are limited to development/testing dependencies and
poetry.lockregeneration, with no runtime code or production dependency changes.Overview
Ensures the test runner is installed consistently by adding
pytestandpytest-covto[tool.poetry.group.dev.dependencies].Regenerates
poetry.lockto includepytest,pytest-cov, and their transitive dev-only dependencies (e.g.,coverage,pluggy,iniconfig,packaging,pygments), and updates lock metadata (including the Poetry generator/version header).Written by Cursor Bugbot for commit 838bf9b. This will update automatically on new commits. Configure here.