Skip to content

Wire tommy as conformist (treelint) TOML formatter + codegen linter#269

Open
friedenberg wants to merge 2 commits into
masterfrom
claude/tommy-conformist-formatter-ps21a7
Open

Wire tommy as conformist (treelint) TOML formatter + codegen linter#269
friedenberg wants to merge 2 commits into
masterfrom
claude/tommy-conformist-formatter-ps21a7

Conversation

@friedenberg

Copy link
Copy Markdown
Collaborator
  • treelint.toml: add [formatter.tommy] (tommy fmt over *.toml) and [linter.tommy-codegen]. The linter's repair regenerates the *_tommy.go companions via tommy generate so they land in the conformist --commit chore; the check 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 tommy + go to the treelint-fmt wrapper (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 nix in the authoring environment.

https://claude.ai/code/session_01HWabFkHATxynhaY8LB4wF9


Generated by Claude Code

claude added 2 commits June 13, 2026 21:04
- 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.
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.

2 participants