Skip to content

ci/treefmt: add biome#435259

Merged
wolfgangwalther merged 7 commits intoNixOS:masterfrom
wolfgangwalther:ci-treefmt-biome
Aug 20, 2025
Merged

ci/treefmt: add biome#435259
wolfgangwalther merged 7 commits intoNixOS:masterfrom
wolfgangwalther:ci-treefmt-biome

Conversation

@wolfgangwalther
Copy link
Copy Markdown
Contributor

Adds biome as a formatter, for now only for everything except pkgs/*. There are too many files to go through in there, right now.

Avoids formatting for the CI scripts from getting out of sync all the time, see #434541 (comment).

Things done


Add a 👍 reaction to pull requests you find important.

@nix-owners nix-owners bot requested review from Mic92, philiptaron and zowoq August 20, 2025 13:09
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 8.has: documentation This PR adds or changes documentation backport release-25.05 labels Aug 20, 2025
Copy link
Copy Markdown
Contributor

@MattSturgeon MattSturgeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JS looks good, not convinced about the CSS indentation though.

ci/default.nix Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting that this apparently doesn't need pkgs/**?

Makes me wonder if this is actually matching any part of the path (effectively **/pkgs/*/**, with the leading **/ and trailing /** added implicitly by treefmt)?

If so, I'd expect pkgs to work without any /* needed.

cc @jfly @brianmcgee

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If so, I'd expect pkgs to work without any /* needed.

Tested: Nope, it doesn't.

This excludes doc and pkgs folders, because there are way too many files
to fix at the moment.
We already do in doc/style.css, but we should tell our editors and
formatters, too.

The comment.. doesn't really make sense, it's purely repetitive with the
code itself. Thus, removed.
@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Aug 20, 2025
@wolfgangwalther wolfgangwalther merged commit 6cab161 into NixOS:master Aug 20, 2025
26 of 29 checks passed
@wolfgangwalther wolfgangwalther deleted the ci-treefmt-biome branch August 20, 2025 14:28
@nixpkgs-ci

This comment was marked as resolved.

@wolfgangwalther wolfgangwalther added the 8.has: port to stable This PR already has a backport to the stable release. label Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 8.has: documentation This PR adds or changes documentation 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants