Repository navigation
Documentation: pyTooling.Sphinx, dependency tables and coverage pages - #193
Conversation
… 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>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
🟢 Coverage ∅ diff coverage · +0.00% coverage variation
Metric Results Coverage variation ✅ +0.00% coverage variation Diff coverage ✅ ∅ diff coverage 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 Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
…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>
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>
Documentation
doc/requirements.txtrequirespyTooling.Sphinx[reports] ~= 0.1.0rc3(wassphinx_reports ~= 0.11.2),conf.pyloadspyTooling.Sphinx, and the report configuration is namedpyTooling_Unittest_Testsuites,pyTooling_CodeCoverage_PackagesandpyTooling_DocCoverage_Packages. The report pages use the samereport:directives and credit pyTooling.Sphinx.dependency-tabledirectives, 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 fromdoc/Dependency.PackageOverrides.yaml: pyTooling.GitHub's file, reduced to the packages these tables reach, plusmypy-extensions(no license metadata on PyPI; its LICENSE is MIT).pyproject.toml's[build-system]instead of a table ofbuild/requirements.txt, which doesn't exist.DEP,DEP/package, ...);Installation.rstalready referred toDEP/packaging, which didn't exist.sourcesandpages(coverage/src), the documentation coverage reportpages(doccoverage/src); the tables link to the pages, a file's page shows its listing with every line marked by its coverage state.coverage/index.rst, with table and legend (CODECOV);CodeCoverage.rstshowed the same table again and is removed.doccoverage/index.rst(DOCCOV), as in pyTooling.Sphinx; it credits pyEDAA.Reports, which analyzes it, instead of docstr-coverage.Installation.rstsaid "sphinx-reports" where it meant pyVHDLModel.Known Issues
tests/unit/requirements.txtandtests/typing/requirements.txtseparately, nottests/requirements.txt: both include the package'srequirements.txt, and pyTooling v10.0.0rc3'sRequirementsFilereports a file included twice through two branches as a circular include (fix in pyTooling). After that fix,conf.pycan nametests/requirements.txtagain.Others
Installation.rst's undefined|PackageName|is ondevalready.Related Issues and Pull-Requests