Skip to content

v16: nix: replace postgrest-style/postgrest-lint with treefmt - #5216

Merged
wolfgangwalther merged 13 commits into
v16from
backport-5200-to-v16
Sep 3, 2026
Merged

v16: nix: replace postgrest-style/postgrest-lint with treefmt#5216
wolfgangwalther merged 13 commits into
v16from
backport-5200-to-v16

Conversation

@postgrest-ci

@postgrest-ci postgrest-ci Bot commented Sep 3, 2026

Copy link
Copy Markdown

Backport for #5200.

This just adds the basic structure to be able to run `treefmt` in the
development shell, via `nix fmt` and automatically in CI.

(cherry picked from commit 26dd281)
(cherry picked from commit 8102cb2)
(cherry picked from commit bb815ea)
(cherry picked from commit 2041bf2)
(cherry picked from commit cc2a55d)
(cherry picked from commit 1d6cea4)
(cherry picked from commit bbc21f3)
Superseded by treefmt.

(cherry picked from commit 0672dfd)
-j is passed automatically via treefmt-nix, so removing that from the
config file.

(cherry picked from commit 720b26e)
(cherry picked from commit e9ac453)
The hsie import check is not like other formatters, because it does not
run on single files - instead it runs on the whole folder at once. Thus,
it doesn't match the model that treefmt uses and can't be made to work
with it.

That should be fine, though - just running it in CI will still give us
feedback, eventually.

(cherry picked from commit f2838cd)
Superseded by treefmt.

(cherry picked from commit aad0b48)
@wolfgangwalther
wolfgangwalther merged commit b228b19 into v16 Sep 3, 2026
27 checks passed
@wolfgangwalther
wolfgangwalther deleted the backport-5200-to-v16 branch September 3, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant