Skip to content

Wire tommy as conformist TOML formatter + codegen linter#238

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

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

Conversation

@friedenberg

Copy link
Copy Markdown
Contributor
  • conformist.toml: add [formatter.tommy] (tommy fmt over *.toml) and [linter.tommy-codegen]. The linter's repair regenerates the blob_store_configs *_tommy.go via tommy generate so it lands in the conformist --commit chore; the check is a no-op true so conformist check never reports false codegen drift (true staleness stays gated by just generate-tommy).
  • go/default.nix / flake.nix: put tommy + the codegen driver on the devShell and conformistFmt wrapper PATH so just fmt / just lint-fmt (which run conformist in the devshell) resolve both. The driver is sourced from the tommy flake (tommy.packages.<system>.conformist-tommy-codegen), 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 20:59
- conformist.toml: add [formatter.tommy] (tommy fmt over *.toml) and
  [linter.tommy-codegen] (repair regenerates the blob_store_configs *_tommy.go
  via `tommy generate`, so it lands in the `conformist --commit` chore). The
  check command is a no-op `true` so `conformist check` never reports false
  codegen drift; true staleness stays gated by `just generate-tommy`.
- go/default.nix: add a self-gating conformist-tommy-codegen driver (skips when
  tommy/go are off PATH), put it on the devShell PATH, and export it.
- flake.nix: add tommy + the driver to the conformistFmt wrapper so `nix fmt`
  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 devShell + conformistFmt references and conformist.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