Repository navigation
DependencyTable: warnings from loading a project are reported, not raised - #52
Merged
Merged
Conversation
…ised. - 'DependencyCollector.Project' collects what 'DownloadProject' reports with a 'WarningCollector' and logs each warning as a Sphinx warning, as 'Details' does for a release. - pyTooling will report a release whose version can't be parsed (e.g. pytz' '2004d') as a critical warning instead of printing it; without a collector, the Sphinx build would abort. - Test: an index whose project download reports a critical warning; the project is returned, the warning logged once. Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #52 +/- ##
==========================================
+ Coverage 84.89% 85.12% +0.23%
==========================================
Files 24 24
Lines 4879 4882 +3
Branches 785 786 +1
==========================================
+ Hits 4142 4156 +14
+ Misses 626 613 -13
- Partials 111 113 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Paebbels
requested changes
Oct 18, 2026
Applies the review suggestion: the separate declaration 'project: Nullable[Project]' above the 'with' block is folded into the first assignment inside the 'try' block. Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Same as for 'project' in the previous commit: the separate declaration 'values: tuple[str, ...]' in 'readEntrypoints' is folded into the first assignment. Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
This was referenced Oct 18, 2026
Merged
Merged
Merged
Merged
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pyTooling will report a release whose version its parser can't read (pytz'
2004d…2013d) as a criticalUnsupportedVersionWarninginstead of printing it (pyTooling/pyTooling#581).DependencyCollector.Projectdownloads a project without aWarningCollector, so that warning would escalate toUnhandledCriticalWarningErrorand abort the documentation build for any table reaching such a package.Bug Fixes
DependencyCollector.Projectcollects whatPythonPackageIndex.DownloadProjectreports and logs each warning as a Sphinx warning ([dependency-table] ..., notes on their own lines), asDetailsalready does for a release. The project is still returned.Unit Tests
tests/unit/DependencyTable.py: new testsuite Reporting project warnings - an index whose project download reports a critical warning; the project is returned and the warning logged once. Fails without the fix (UnhandledCriticalWarningError).devand against the pyTooling branch.Related Issues and Pull-Requests
UnsupportedVersionWarninginstead ofprint. This PR should merge before the pyTooling release containing it.