Skip to content

Fix issue with Python formatting and expand scope of python-tooling#21799

Open
jacknojo wants to merge 2 commits intomainfrom
jacknojo/fix_python_formatting
Open

Fix issue with Python formatting and expand scope of python-tooling#21799
jacknojo wants to merge 2 commits intomainfrom
jacknojo/fix_python_formatting

Conversation

@jacknojo
Copy link
Copy Markdown
Contributor

@jacknojo jacknojo commented May 5, 2026

I changed some Python code in #21751. That code change was not run by the check-python-tooling workflow, because the triggers of that workflow does not include the Python script I changed. On an unrelated PR, it's now causing an error, see https://github.com/github/codeql/actions/runs/25377388307/job/74416070526?pr=21797#step:4:137.

  1. Expand the workflow to include all Python scripts of the models-as-data folder.
  2. Fix the issue in the Python script.
  3. Fix an issue in the mad_modelDiff workflow - I am not sure why that did not run on Move generated MaDs into modelgenerator/ #21751.

Assuming the CI uses the workflow definition of the PR branch, we should see the check passing here.

Copilot AI review requested due to automatic review settings May 5, 2026 14:02
@jacknojo jacknojo requested review from a team as code owners May 5, 2026 14:02
tausbn
tausbn previously approved these changes May 5, 2026
Copy link
Copy Markdown
Contributor

@tausbn tausbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Python tooling workflow so changes to MaD (models-as-data) scripts are consistently checked, and adjusts a Python formatting change that was previously missed by CI.

Changes:

  • Expand python-tooling.yml path triggers to run on any misc/scripts/models-as-data/*.py changes.
  • Reformat a long os.path.join(...) call in generate_mad.py (intended to satisfy black formatting).
Show a summary per file
File Description
misc/scripts/models-as-data/generate_mad.py Adjusts line wrapping in a path construction to address black formatting.
.github/workflows/python-tooling.yml Broadens workflow triggers to include all Python scripts in misc/scripts/models-as-data/.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

Comment thread misc/scripts/models-as-data/generate_mad.py Outdated
@jacknojo jacknojo force-pushed the jacknojo/fix_python_formatting branch from 97d84d7 to ebc759d Compare May 5, 2026 14:15
tausbn
tausbn previously approved these changes May 5, 2026
BazookaMusic
BazookaMusic previously approved these changes May 5, 2026
@jacknojo jacknojo dismissed stale reviews from BazookaMusic and tausbn via 52b02a0 May 6, 2026 06:39
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.

4 participants