numtide / treefmt-nix

treefmt nix configuration
https://numtide.github.io/treefmt/
MIT License
228 stars 68 forks source link

[flake-parts] Allow disabling the autowiring of flake check #63

Closed srid closed 1 year ago

srid commented 1 year ago

https://github.com/numtide/treefmt-nix/blob/b25d1a3c2c7554d0462ab1dfddf2f13128638b90/flake-module.nix#L36

When https://github.com/cachix/pre-commit-hooks.nix already adds a check (it includes a treefmt hook), the check added by treefmt is redundant and will just slow CI down unnecessarily.

An option in the flake-parts module to disable this check would be nice.

zimbatm commented 1 year ago

Makes sense, I would accept a PR