From 54b4fbff8ba21da0b182ca20360fb04c91f0a018 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Thu, 4 Apr 2024 22:23:54 +0200 Subject: [PATCH] Enforce hlint and add it to the dev shell --- .github/workflows/main.yml | 3 +++ default.nix | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fbf9e890..1aae472d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,9 @@ jobs: - name: reuse lint run: nix-build -A packages.reuse && result/bin/reuse lint + - name: hlint + run: nix-build -A checks.hlint + - name: build nixfmt run: nix-build if: success() || failure() diff --git a/default.nix b/default.nix index c634445d..530733d5 100644 --- a/default.nix +++ b/default.nix @@ -55,11 +55,12 @@ build haskellPackages.haskell-language-server shellcheck npins + hlint ]; }; checks = { - hlint = pkgs.build.haskell.hlint ./.; + hlint = pkgs.build.haskell.hlint src; stylish-haskell = pkgs.build.haskell.stylish-haskell ./.; }; }