Skip to content

Transfer the GitHub code from pyTooling - #2

Merged
Paebbels merged 3 commits into
devfrom
claude/transfer-from-pyTooling
Oct 4, 2026
Merged

Paebbels merged 3 commits into
devfrom
claude/transfer-from-pyTooling

Conversation

@pytooling-claude

Copy link
Copy Markdown

Moves pyTooling's GitHub code here, from pyTooling dev 47a7877b. pyTooling keeps its copy until the move is released.

Changes

pyTooling pyTooling.GitHub
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 (+ Graph, Reference) pyTooling.GitHub.Sphinx
pyTooling.CLI (+ Pipeline) pyTooling.GitHub.CLI
  • Code unchanged apart from import paths, the program's name and the extras:
    • pyTooling.GitHub.Sphinx is an extension of its own (extensions = ["pyTooling.GitHub.Sphinx"]). Its new setup() registers the domain gha, its six directives, its configuration values and event handlers - the part of pyTooling's extension setup() that was the domain's - and sets up pyTooling.Sphinx first, whose BaseDirective and graphviz setup the directives use.
    • Program pytooling-github (console script, like pyedaa-reports): headline "pyTooling.GitHub Service Program", version reports pyTooling.GitHub.
    • ruamel.yaml is a requirement (pyTooling's github extra). Extras: diagram = matplotlib (--gantt), sphinx = pyTooling.Sphinx.
    • pyTooling's generic parts stay there and are imported: pyTooling.CI, pyTooling.Tracing.CI, pyTooling.Tracing.Render (Gantt layout, matplotlib renderer).
  • pyTooling 10 and pyTooling.Sphinx aren't on PyPI yet, so they are installed from GitHub @dev. PyPI rejects such a requirement - they become ~= 10.0 / ~= 0.1 before 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 of doc/Tracing.rst. Program name, install commands and extras adapted; references to pyTooling's pages are links to its documentation.
  • The only remaining build warning comes from pyTooling: TerminalBaseApplication.PrintMissingDependencyError's doc-string (inherited by Application) - recorded as a pyTooling finding.

Unit Tests

  • Moved with the code: tests/unit/Run.py, WorkflowFile.py, Tracing.py, CLI.py, tests/unit/Sphinx/ and the application tests tests/app/. 424 passed, 134 subtests - the same counts as these files in pyTooling.

Related Issues and Pull-Requests

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>
@pytooling-claude
pytooling-claude Bot requested a review from Paebbels as a code owner October 3, 2026 11:40
@pytooling-claude pytooling-claude Bot mentioned this pull request Oct 3, 2026
* 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>
@codacy-production

codacy-production Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 13 high · 21 medium · 66 minor

Alerts:
⚠ 100 issues (≤ 0 issues of at least minor severity)

Results:
100 new 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

View in Codacy

🟢 Metrics 1807 complexity · 32 duplication

Metric Results
Complexity 1807
Duplication 32

View in Codacy

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.

Comment thread doc/WorkflowFile.rst Resolved
Comment thread doc/Sphinx.rst Resolved
Comment thread pyTooling/GitHub/Sphinx/__init__.py Resolved
* 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>
@Paebbels
Paebbels merged commit 244e23f into dev Oct 4, 2026
1 check failed
This was referenced Oct 4, 2026
This was referenced Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants