Skip to content

Lint Python scripts in .ci-scripts on every PR - #326

Merged
SeanTAllen merged 1 commit into
mainfrom
lint-python-ci-scripts
May 29, 2026
Merged

Lint Python scripts in .ci-scripts on every PR#326
SeanTAllen merged 1 commit into
mainfrom
lint-python-ci-scripts

Conversation

@SeanTAllen

Copy link
Copy Markdown
Member

The .ci-scripts/release/ Python scripts (github_release.py, ghcr_nightly.py) run only during release and nightly workflows. A syntax error, undefined name, or stale import there breaks a release while a git tag is already pushed.

This adds a pull_request-triggered job that runs the pinned ruff Docker image (ruff 0.15.12) against .ci-scripts, mirroring ponyup's lint-python.yml. Modeled on ponyup, it uses ruff's default rules with no config file. Verified locally that the existing scripts pass with the same pinned image.

Closes #324
Closes #316

The .ci-scripts/release/ Python scripts (github_release.py,
ghcr_nightly.py) run only during release/nightly workflows. A syntax
error, undefined name, or stale import there breaks a release while a
git tag is already pushed -- a feedback loop worth avoiding.

Mirrors ponyup's lint-python.yml: a pull_request-triggered job running
the pinned ruff Docker image against .ci-scripts.

Closes #324
Closes #316
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label May 29, 2026
@SeanTAllen
SeanTAllen merged commit d8468a1 into main May 29, 2026
11 checks passed
@SeanTAllen
SeanTAllen deleted the lint-python-ci-scripts branch May 29, 2026 02:08
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label May 29, 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.

Lint Python files in .ci-scripts on every PR Lint the Python release-upload script in CI

2 participants