Skip to content

Run pre-commit hooks in CI - #13

Merged
arjanvandervelde merged 4 commits into
masterfrom
agv/ci-pre-commit
Oct 29, 2026
Merged

arjanvandervelde merged 4 commits into
masterfrom
agv/ci-pre-commit

Conversation

@arjanvandervelde

@arjanvandervelde arjanvandervelde commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Add a dedicated pre-commit CI job so every pull request and existing CI push trigger runs the repository’s hook suite. Use uv with Python 3.11 and pre-commit 4.6.1, cache hook environments, and show diffs when hooks propose fixes.

Give the six license-header hooks distinct display names for copyright text, Python, C/C++, Markdown, configuration, and Vim. Upgrade checkout, cache, and setup-uv to Node.js 24 releases, and pin Linux jobs to Ubuntu 24.04 to avoid the moving ubuntu-latest image and its migration notice.

Validation: the exact CI hook command passed across all files locally. All 11 Python integration and parser tests, Python quality checks, commit-time hooks, and whitespace checks passed. The previous CI run passed before the action and runner updates; those updates still need confirmation in CI.

The check to require is pre-commit; branch protection is configured separately. Commit-message validation remains a local commit hook.

arjanvandervelde and others added 4 commits October 28, 2026 20:58
Add a dedicated Ubuntu CI job that runs all pre-commit hooks with Python
3.11 and a pinned pre-commit version. Cache hook environments to speed up
subsequent workflow runs and show proposed fixes when a hook fails.
Name each license-header hook for its target file type. Make hook output
distinguish copyright text, Python, C/C++, Markdown, configuration, and Vim.
Upgrade checkout, cache, and setup-uv to releases using Node.js 24.
Pin Linux jobs to Ubuntu 24.04 to keep the tested runner image stable
through the ubuntu-latest migration.
@arjanvandervelde
arjanvandervelde merged commit 6ef0d30 into master Oct 29, 2026
4 checks passed
@arjanvandervelde
arjanvandervelde deleted the agv/ci-pre-commit branch October 29, 2026 01:35
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.

1 participant