Skip to content

fix: pin toml-sort to 0.25.0 in the pretty-format-toml hook - #2940

Merged
edopao merged 1 commit into
GridTools:mainfrom
edopao:fix_toml_formatting
Oct 8, 2026
Merged

edopao merged 1 commit into
GridTools:mainfrom
edopao:fix_toml_formatting

Conversation

@edopao

@edopao edopao commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Same issue and fix as in ICON4Py PR C2SM/icon4py#1509, credits to @msimberg

toml-sort is unpinned in the hooks that do toml formatting. The CI runner has been using newer base images, leading to a python version bump, uv cache invalidation, and finally a toml-sort version bump. toml-sort 0.25.0 changes formatting. I'm pinning the version to 0.25.0 in .pre-commit-config.yaml to avoid it changing suddenly. The upstream issue might allow us to remove the pin if it's fixed: macisamuele/language-formatters-pre-commit-hooks#351.

@edopao
edopao merged commit 685aed2 into GridTools:main Oct 8, 2026
32 checks passed
@edopao
edopao deleted the fix_toml_formatting branch October 8, 2026 08:36
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.

toml-sort has no upper version limit

2 participants