Wire tommy as conformist (treelint) TOML formatter + codegen linter#269
Open
friedenberg wants to merge 2 commits into
Open
Wire tommy as conformist (treelint) TOML formatter + codegen linter#269friedenberg wants to merge 2 commits into
friedenberg wants to merge 2 commits into
Conversation
- treelint.toml: add [formatter.tommy] (tommy fmt over *.toml) and [linter.tommy-codegen] (repair regenerates the *_tommy.go companions via `tommy generate`, so they land in the `conformist --commit` chore). The check command is a no-op `true` so `treelint check` never reports false codegen drift; true staleness stays gated by `just build-go-generate`. - go/default.nix: add a self-gating conformist-tommy-codegen driver (skips when tommy/go are off PATH) plus tommy + go to the treelint-fmt wrapper, so the wrapper resolves the formatter and the codegen repair command.
Replace the inline codegen driver with tommy.packages.${system}.conformist-tommy-codegen
so the pinned tommy flake input resolves which tommy backs the codegen linter.
The treelint-fmt wrapper references and treelint.toml are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
treelint.toml: add[formatter.tommy](tommy fmtover*.toml) and[linter.tommy-codegen]. The linter's repair regenerates the*_tommy.gocompanions viatommy generateso they land in theconformist --commitchore; the check is a no-optruesotreelint checknever reports false codegen drift (true staleness stays gated byjust build-go-generate).go/default.nix: add tommy + go to thetreelint-fmtwrapper (so the formatter and codegen repair resolve), and source the codegen driver from the tommy flake (tommy.packages.<system>.conformist-tommy-codegen) rather than an inline script — so the pinned tommy input resolves which tommy backs it.Depends on amarbel-llc/tommy#136. Not validated with
nixin the authoring environment.https://claude.ai/code/session_01HWabFkHATxynhaY8LB4wF9
Generated by Claude Code