mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #1253] [MERGED] Enforce Pkl formatting of stdlib with spotless #972
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1253
Author: @bioball
Created: 10/23/2025
Status: ✅ Merged
Merged: 10/24/2025
Merged by: @bioball
Base:
main← Head:spotless-format-pkl📝 Commits (1)
e13b794Enforce Pkl formatting of stdlib with spotless📊 Changes
4 files changed (+94 additions, -12 deletions)
View changed files
➕
buildSrc/src/main/kotlin/PklFormatterSpotless.kt(+56 -0)➕
buildSrc/src/main/kotlin/pklSpotlessFormat.gradle.kts(+36 -0)📝
stdlib/base.pkl(+1 -1)📝
stdlib/stdlib.gradle.kts(+1 -11)📄 Description
This adds a spotless formatting step using the new pkl formatter.
This only formats Pkl sources in the stdlib, because other sources are possibly test input and not meant to be formatted.
TODO: it'd be good to also format the sources in
.circleci(and.githubonce we migrate to GHA), but I'm running into some Gradle weirdness when trying to set that up; seeing this error:🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.