Skip to content

Report broken requirements in dependency tables as Sphinx warnings - #31

Merged
Paebbels merged 1 commit into
devfrom
claude/dependencytable-warnings
Oct 14, 2026
Merged

Paebbels merged 1 commit into
devfrom
claude/dependencytable-warnings

Conversation

@pytooling-claude

Copy link
Copy Markdown

Bug Fixes

  • pyTooling.Sphinx.DependencyTable:
    • A requirements file named by pyTooling_Dependency_Requirements was read without a WarningCollector. A line that can't be parsed (pyTooling's BrokenRequirementWarning) was dropped from the dependency table without any message. It is now reported as a Sphinx warning naming the entrypoint, the file and the line number; the file's other requirements are still read. This also covers files included with -r.
    • DependencyCollector.Details collected the warnings of Release.DownloadDetails, but kept only UnknownLicenseWarning. A BrokenRequirementWarning (a requirement whose marker names no extra the release declares) was discarded. Every collected warning other than UnknownLicenseWarning is now reported as a Sphinx warning, including its notes.

Documentation

  • The doc-strings of DependencyCollector.Details and of the requirements file reader name the warnings reported as Sphinx warnings.

Unit Tests

  • Entrypoints.File_BrokenRequirement: a broken line between two requirements is logged with entrypoint, file and line; both requirements are read.
  • Entrypoints.File_Included_BrokenRequirement: a broken line in a file included with -r is logged with the included file's path.
  • BrokenRequirementReport.BrokenRequirement: DependencyCollector.Details logs a BrokenRequirementWarning with its note, still returns the release and records no unresolved license.
  • tests/unit: 221 passed (3 new; they fail without the fix).

A requirements file is read inside a 'WarningCollector'; each
'BrokenRequirementWarning' (a line that can't be parsed) is reported through
the Sphinx logger, naming the entrypoint, file and line. The file's other
requirements are still read.

'DependencyCollector.Details' reports every collected warning other than
'UnknownLicenseWarning' through the logger, e.g. a 'BrokenRequirementWarning'
for a requirement whose marker names no declared extra.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@pytooling-claude
pytooling-claude Bot requested a review from Paebbels as a code owner October 12, 2026 22:50
@pytooling-claude pytooling-claude Bot added the Bug Something isn't working label Oct 12, 2026
@codacy-production

codacy-production Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 5 complexity · 0 duplication

Metric Results
Complexity 5
Duplication 0

View in Codacy

🟢 Coverage 100.00% diff coverage · +0.05% coverage variation

Metric Results
Coverage variation ✅ +0.05% coverage variation (-1.00%)
Diff coverage ✅ 100.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (1185e3e) 3212 2632 81.94%
Head commit (5534015) 3221 (+9) 2641 (+9) 81.99% (+0.05%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#31) 10 10 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

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

codecov Bot commented Oct 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.44%. Comparing base (1185e3e) to head (5534015).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #31      +/-   ##
==========================================
+ Coverage   79.35%   79.44%   +0.08%     
==========================================
  Files          19       19              
  Lines        3212     3221       +9     
  Branches      485      486       +1     
==========================================
+ Hits         2549     2559      +10     
  Misses        580      580              
+ Partials       83       82       -1     
Flag Coverage Δ
unittests 79.44% <100.00%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@Paebbels
Paebbels merged commit 8275e0d into dev Oct 14, 2026
53 checks passed
@Paebbels
Paebbels deleted the claude/dependencytable-warnings branch October 14, 2026 13:04
@pytooling-claude pytooling-claude Bot mentioned this pull request Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants