add pre-commit check

make sure things are sane before they hit CI.
this re-purposes the existing treefmt configuration.
This commit is contained in:
Valentin Gagarin
2024-05-15 16:46:03 +02:00
committed by Luis Hebendanz
parent 2785f59960
commit 29d713e44e
3 changed files with 137 additions and 2 deletions

View File

@@ -21,6 +21,7 @@
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
};
outputs =