Repository navigation
Commit 7f5a7c2
committed
test(contract): compare dependency ranges structurally instead of hardcoding upper bounds
The upper-bound check asserted literal strings such as '<13.0.0', so every
Dependabot range bump (e.g. #11, Pillow <14.0.0) failed CI although
requirements.txt, pyproject.toml and the lockfile moved together.
The test now checks that each bounded package has identical ranges in
requirements.txt and pyproject.toml and that the locked version is below
the upper bound. Vulnerability floors are still checked separately.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01THB2F227hR8eAmXPnAe4bZ1 parent 550e90f commit 7f5a7c2
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
82 | 96 | | |
83 | 97 | | |
84 | 98 | | |
| |||
0 commit comments