Skip to content

Documentation: pyTooling.Sphinx, dependency tables and coverage pages - #193

Merged
Paebbels merged 2 commits into
devfrom
claude/dependency-table
Oct 18, 2026
Merged

Paebbels merged 2 commits into
devfrom
claude/dependency-table

Conversation

@vhdl-claude

@vhdl-claude vhdl-claude Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Documentation

  • The documentation is built with pyTooling.Sphinx instead of sphinx-reports: doc/requirements.txt requires pyTooling.Sphinx[reports] ~= 0.1.0rc3 (was sphinx_reports ~= 0.11.2), conf.py loads pyTooling.Sphinx, and the report configuration is named pyTooling_Unittest_Testsuites, pyTooling_CodeCoverage_Packages and pyTooling_DocCoverage_Packages. The report pages use the same report: directives and credit pyTooling.Sphinx.
  • Dependency: the hand-written grid tables are replaced by dependency-table directives, which read the requirements files and the package index - package, testing (unit tests and type checking), documentation and publishing (pyTooling_Dependency_Requirements). Licenses the index can't answer for come from doc/Dependency.PackageOverrides.yaml: pyTooling.GitHub's file, reduced to the packages these tables reach, plus mypy-extensions (no license metadata on PyPI; its LICENSE is MIT).
    • Packaging names pyproject.toml's [build-system] instead of a table of build/requirements.txt, which doesn't exist.
    • The page's labels are hierarchical (DEP, DEP/package, ...); Installation.rst already referred to DEP/packaging, which didn't exist.
    • The libraries.io badge ("Service was shutdown") is removed.
  • Code and documentation coverage get a page per directory and source file, as in pyTooling.Sphinx' own documentation: the code coverage report declares sources and pages (coverage/src), the documentation coverage report pages (doccoverage/src); the tables link to the pages, a file's page shows its listing with every line marked by its coverage state.
    • One code coverage page, coverage/index.rst, with table and legend (CODECOV); CodeCoverage.rst showed the same table again and is removed.
    • The documentation coverage report moves to doccoverage/index.rst (DOCCOV), as in pyTooling.Sphinx; it credits pyEDAA.Reports, which analyzes it, instead of docstr-coverage.
  • Installation.rst said "sphinx-reports" where it meant pyVHDLModel.

Known Issues

  • The testing table reads tests/unit/requirements.txt and tests/typing/requirements.txt separately, not tests/requirements.txt: both include the package's requirements.txt, and pyTooling v10.0.0rc3's RequirementsFile reports a file included twice through two branches as a circular include (fix in pyTooling). After that fix, conf.py can name tests/requirements.txt again.

Others

  • Local build: no license left unresolved by the tables; 49 coverage pages generated, linked from both tables. The remaining warnings come from autodoc (forward references, decorator wrappers) and existing doc-strings; Installation.rst's undefined |PackageName| is on dev already.

Related Issues and Pull-Requests

… tables by the 'dependency-table' directive.

* doc/requirements.txt: 'pyTooling.Sphinx[reports] ~= 0.1.0rc3' replaces 'sphinx_reports ~= 0.11.2'; conf.py loads
  'pyTooling.Sphinx' and names the report configuration 'pyTooling_Unittest_Testsuites', 'pyTooling_CodeCoverage_Packages'
  and 'pyTooling_DocCoverage_Packages'. The report pages credit pyTooling.Sphinx.
* Dependency.rst: the hand-written grid tables are replaced by 'dependency-table' directives for the package, testing,
  documentation and publishing requirements ('pyTooling_Dependency_Requirements'); licenses the package index can't
  answer for come from 'Dependency.PackageOverrides.yaml' (pyTooling.GitHub's file, reduced, plus 'mypy-extensions').
  Packaging names 'pyproject.toml' instead of a table of a 'build/requirements.txt' that doesn't exist. The page's labels
  are hierarchical ('DEP', 'DEP/...'); Installation.rst already referred to 'DEP/packaging'.
* The testing table reads tests/unit and tests/typing separately: pyTooling v10.0.0rc3 reads 'tests/requirements.txt',
  which includes both, as a circular include, because both include the package's 'requirements.txt'.
* Installation.rst said 'sphinx-reports' where it meant pyVHDLModel.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@vhdl-claude
vhdl-claude Bot requested a review from Paebbels as a code owner October 18, 2026 15:49
@vhdl-claude vhdl-claude Bot added documentation Improvements or additions to documentation Dependencies Used by Dependabot. labels Oct 18, 2026
@codacy-production

codacy-production Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

🟢 Coverage ∅ diff coverage · +0.00% coverage variation

Metric Results
Coverage variation ✅ +0.00% coverage variation
Diff coverage ✅ ∅ diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (08766d2) 5437 4859 89.37%
Head commit (bab9043) 5437 (+0) 4859 (+0) 89.37% (+0.00%)

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 (#193) 0 0 ∅ (not applicable)

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 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.65%. Comparing base (08766d2) to head (bab9043).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #193   +/-   ##
=======================================
  Coverage   87.65%   87.65%           
=======================================
  Files          24       24           
  Lines        5437     5437           
  Branches      446      446           
=======================================
  Hits         4766     4766           
  Misses        578      578           
  Partials       93       93           
Flag Coverage Δ
unittests 87.65% <ø> (ø)

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.

…ry and source file, as in pyTooling.Sphinx.

* conf.py: the code coverage report declares 'sources' and 'pages' ("coverage/src"), the documentation coverage report
  'pages' ("doccoverage/src"); pyTooling.Sphinx generates a page per directory and source file, which the tables link.
* One code coverage page, coverage/index.rst, with the table and the legend (CODECOV); CodeCoverage.rst showed the same
  table again and is removed.
* The documentation coverage report moves to doccoverage/index.rst (DOCCOV), as in pyTooling.Sphinx; it is analyzed by
  pyEDAA.Reports, not docstr-coverage.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@vhdl-claude vhdl-claude Bot changed the title Documentation: pyTooling.Sphinx and its dependency-table directive Documentation: pyTooling.Sphinx, dependency tables and coverage pages Oct 18, 2026
@Paebbels
Paebbels merged commit 54a8ab4 into dev Oct 18, 2026
73 checks passed
@Paebbels
Paebbels deleted the claude/dependency-table branch October 18, 2026 17:47
vhdl-claude Bot pushed a commit that referenced this pull request Oct 21, 2026
pyTooling 10.0.0rc4 reads a requirements file included twice - 'tests/unit' and 'tests/typing' both include
'requirements.txt' - instead of reporting a circular include (pyTooling/pyTooling#601). The workaround of #193
listing both files goes. pyTooling.Sphinx 0.1.0rc5 is the first release reading requirements files the way
pyTooling 10.0.0rc4 needs (pyTooling/pyTooling.Sphinx#53).

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
This was referenced Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Used by Dependabot. documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants