Skip to content

Add format-autopkg-yaml-recipes hook#114

Merged
homebysix merged 2 commits intomainfrom
ej/autopkg-tidy-1777693726946
May 2, 2026
Merged

Add format-autopkg-yaml-recipes hook#114
homebysix merged 2 commits intomainfrom
ej/autopkg-tidy-1777693726946

Conversation

@homebysix
Copy link
Copy Markdown
Owner

Adds a new hook that tidies AutoPkg YAML recipes (*.recipe.yaml) using ruamel.yaml round-trip mode: reorders top-level keys, moves NAME to the top of Input, places Arguments last in each processor, and inserts a blank line before each top-level section. Comments and quoted strings (including YAML 1.1 boolean literals like 'YES' and 'NO') are preserved, and the hook skips writing when content is unchanged so pre-commit doesn't flag no-op runs as modifications. Adapted from @grahampugh's plist-yaml-plist.

@homebysix homebysix merged commit 15a5150 into main May 2, 2026
3 checks passed
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