Repository navigation
Transfer the GitHub code from pyTooling - #2
Merged
Merged
Conversation
From pyTooling dev 47a7877b, code unchanged apart from import paths, program name and extras: * pyTooling.CI.GitHub (run model) -> pyTooling.GitHub * pyTooling.CI.GitHub.WorkflowFile -> pyTooling.GitHub.WorkflowFile * pyTooling.Tracing.CI.GitHub (run reader) -> pyTooling.GitHub.Tracing * pyTooling.Documentation.Sphinx.GitHubActions (domain 'gha') -> pyTooling.GitHub.Sphinx, an extension of its own with a setup() that sets up pyTooling.Sphinx first * pyTooling.CLI (+ .Pipeline) -> pyTooling.GitHub.CLI, console script 'pytooling-github' Tests (424 + 134 subtests, as in pyTooling) and documentation pages move along. ruamel.yaml is a requirement; extras 'diagram' (matplotlib) and 'sphinx' (pyTooling.Sphinx). pyTooling 10 and pyTooling.Sphinx aren't on PyPI yet, so both are installed from their 'dev' branches. Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Merged
* pyTooling.Sphinx.Directives became part of pyTooling.Sphinx (pyTooling/pyTooling.Sphinx#2). * Every file's banner spells pyTooling.GitHub. * Imports aligned to the column the shorter module paths need. Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| UnusedCode | 2 medium |
| Documentation | 21 minor |
| ErrorProne | 10 high |
| Security | 2 medium 2 minor 3 high |
| CodeStyle | 18 minor |
| Complexity | 17 medium 25 minor |
🟢 Metrics 1807 complexity · 32 duplication
Metric Results Complexity 1807 Duplication 32
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.
Paebbels
requested changes
Oct 4, 2026
* Labels of the data models are 'DATA/Workflow/...' (workflow files) and 'DATA/Run/...' (runs), instead of 'CI/Workflow/...' and 'CI/GitHub/...'. * The domain's page moves from doc/Sphinx.rst to doc/GHA/index.rst, its labels from 'DOC/Sphinx/GHA/...' to 'GHA/...'; the example workflows move along to doc/GHA/Workflows. Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
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.
Moves pyTooling's GitHub code here, from pyTooling
dev47a7877b. pyTooling keeps its copy until the move is released.Changes
pyTooling.CI.GitHub(run model)pyTooling.GitHubpyTooling.CI.GitHub.WorkflowFilepyTooling.GitHub.WorkflowFilepyTooling.Tracing.CI.GitHub(run reader)pyTooling.GitHub.TracingpyTooling.Documentation.Sphinx.GitHubActions(+Graph,Reference)pyTooling.GitHub.SphinxpyTooling.CLI(+Pipeline)pyTooling.GitHub.CLIpyTooling.GitHub.Sphinxis an extension of its own (extensions = ["pyTooling.GitHub.Sphinx"]). Its newsetup()registers the domaingha, its six directives, its configuration values and event handlers - the part of pyTooling's extensionsetup()that was the domain's - and sets uppyTooling.Sphinxfirst, whoseBaseDirectiveand graphviz setup the directives use.pytooling-github(console script, likepyedaa-reports): headline "pyTooling.GitHub Service Program",versionreports pyTooling.GitHub.ruamel.yamlis a requirement (pyTooling'sgithubextra). Extras:diagram= matplotlib (--gantt),sphinx= pyTooling.Sphinx.pyTooling.CI,pyTooling.Tracing.CI,pyTooling.Tracing.Render(Gantt layout, matplotlib renderer).@dev. PyPI rejects such a requirement - they become~= 10.0/~= 0.1before the first upload.Documentation
doc/CI/GitHub.rst→doc/Run.rst,doc/CI/Workflow.rst→doc/WorkflowFile.rst,doc/Documentation/GitHubActions.rst(+Workflows/*.yml) →doc/Sphinx.rst,doc/CLI.rst, and the section GitHub Actions ofdoc/Tracing.rst. Program name, install commands and extras adapted; references to pyTooling's pages are links to its documentation.TerminalBaseApplication.PrintMissingDependencyError's doc-string (inherited byApplication) - recorded as a pyTooling finding.Unit Tests
tests/unit/Run.py,WorkflowFile.py,Tracing.py,CLI.py,tests/unit/Sphinx/and the application teststests/app/. 424 passed, 134 subtests - the same counts as these files in pyTooling.Related Issues and Pull-Requests
devbranch. Until then this PR's own checks fail on thepyTooling.Sphinximports.