Raised in several reviews today (for example #107): script/fmt runs only go fmt and script/fmt-check only gofmt -l, so markdown is never formatted or checked. REPO_POLICIES.md and the canonical model scripts (https://git.eeqj.de/sneak/prompts/raw/branch/main/script/fmt and script/fmt-check) also run prettier over **/*.md with 4-space tabs and proseWrap: always, and TODO.md and README.md here are wrapped by hand, inconsistently.
Definition of done
script/fmt and script/fmt-check follow the canonical model scripts: Go as now, plus prettier over every markdown file with the repo settings, prettier pinned by hash (package.json and yarn.lock, installed by script/bootstrap as the model does) or run in a pinned Docker image, whichever the model scripts do.
The Dockerfile lint stage and script/cibuild run the markdown check too, so an unformatted markdown file fails the build.
Every markdown file is formatted once in the same commit, wording unchanged.
README.md Entrypoints describes the new behaviour; TODO.md updated.
Sequencing
Last but one, before #43: it rewraps TODO.md, which every other unit edits.
Model: opus-5-5
Raised in several reviews today (for example https://git.eeqj.de/sneak/secret/pulls/107): `script/fmt` runs only `go fmt` and `script/fmt-check` only `gofmt -l`, so markdown is never formatted or checked. `REPO_POLICIES.md` and the canonical model scripts (https://git.eeqj.de/sneak/prompts/raw/branch/main/script/fmt and `script/fmt-check`) also run prettier over `**/*.md` with 4-space tabs and `proseWrap: always`, and `TODO.md` and `README.md` here are wrapped by hand, inconsistently.
## Definition of done
- `script/fmt` and `script/fmt-check` follow the canonical model scripts: Go as now, plus prettier over every markdown file with the repo settings, prettier pinned by hash (`package.json` and `yarn.lock`, installed by `script/bootstrap` as the model does) or run in a pinned Docker image, whichever the model scripts do.
- The `Dockerfile` lint stage and `script/cibuild` run the markdown check too, so an unformatted markdown file fails the build.
- Every markdown file is formatted once in the same commit, wording unchanged.
- `README.md` Entrypoints describes the new behaviour; `TODO.md` updated.
## Sequencing
Last but one, before https://git.eeqj.de/sneak/secret/issues/43: it rewraps `TODO.md`, which every other unit edits.
Model: opus-5-5
Implemented in #117: make fmt and make fmt-check now format and check every markdown file with prettier as well as the Go code, and the Dockerfile lint stage fails the build on unformatted markdown. Details are in the PR.
Model: opus-5-5
Implemented in https://git.eeqj.de/sneak/secret/pulls/117: `make fmt` and `make fmt-check` now format and check every markdown file with prettier as well as the Go code, and the `Dockerfile` lint stage fails the build on unformatted markdown. Details are in the PR.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Raised in several reviews today (for example #107):
script/fmtruns onlygo fmtandscript/fmt-checkonlygofmt -l, so markdown is never formatted or checked.REPO_POLICIES.mdand the canonical model scripts (https://git.eeqj.de/sneak/prompts/raw/branch/main/script/fmt andscript/fmt-check) also run prettier over**/*.mdwith 4-space tabs andproseWrap: always, andTODO.mdandREADME.mdhere are wrapped by hand, inconsistently.Definition of done
script/fmtandscript/fmt-checkfollow the canonical model scripts: Go as now, plus prettier over every markdown file with the repo settings, prettier pinned by hash (package.jsonandyarn.lock, installed byscript/bootstrapas the model does) or run in a pinned Docker image, whichever the model scripts do.Dockerfilelint stage andscript/cibuildrun the markdown check too, so an unformatted markdown file fails the build.README.mdEntrypoints describes the new behaviour;TODO.mdupdated.Sequencing
Last but one, before #43: it rewraps
TODO.md, which every other unit edits.Model: opus-5-5
Implemented in #117:
make fmtandmake fmt-checknow format and check every markdown file with prettier as well as the Go code, and theDockerfilelint stage fails the build on unformatted markdown. Details are in the PR.Model: opus-5-5