diff --git a/templates/c++-cmake/.woodpecker/check.yml b/templates/c++-cmake/.woodpecker/check.yml index c3b00ef..02ed44b 100644 --- a/templates/c++-cmake/.woodpecker/check.yml +++ b/templates/c++-cmake/.woodpecker/check.yml @@ -2,6 +2,11 @@ labels: type: exec pipeline: +- name: pre-commit checks + image: bash + commands: + - nix shell . -c pre-commit run --all + - name: nix flake check image: bash commands: diff --git a/templates/c++-cmake/flake.nix b/templates/c++-cmake/flake.nix index cb468e7..6216356 100644 --- a/templates/c++-cmake/flake.nix +++ b/templates/c++-cmake/flake.nix @@ -86,8 +86,6 @@ { checks = { inherit (self.packages.${system}) project; - - inherit pre-commit; }; devShells = { diff --git a/templates/c++-meson/.woodpecker/check.yml b/templates/c++-meson/.woodpecker/check.yml index c3b00ef..02ed44b 100644 --- a/templates/c++-meson/.woodpecker/check.yml +++ b/templates/c++-meson/.woodpecker/check.yml @@ -2,6 +2,11 @@ labels: type: exec pipeline: +- name: pre-commit checks + image: bash + commands: + - nix shell . -c pre-commit run --all + - name: nix flake check image: bash commands: diff --git a/templates/c++-meson/flake.nix b/templates/c++-meson/flake.nix index 9cfed0d..36b95a7 100644 --- a/templates/c++-meson/flake.nix +++ b/templates/c++-meson/flake.nix @@ -86,8 +86,6 @@ { checks = { inherit (self.packages.${system}) project; - - inherit pre-commit; }; devShells = {