From a46ac79ea8b2a69138f4d8346662b611d479cbb6 Mon Sep 17 00:00:00 2001 From: Taimoor Zaeem Date: Thu, 30 Apr 2026 20:22:47 +0500 Subject: [PATCH] nix: exclude protolude from style checks Currently, our vendored protolude has many failing checks for style, lint and hsie. Temporarily excluding it. We should reinstate these checks later. Signed-off-by: Taimoor Zaeem --- nix/tools/style.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nix/tools/style.nix b/nix/tools/style.nix index f9c92afb3..563a4330b 100644 --- a/nix/tools/style.nix +++ b/nix/tools/style.nix @@ -29,7 +29,8 @@ let # Format Haskell files # --vimgrep fixes a bug in ag: https://github.com/ggreer/the_silver_searcher/issues/753 - ${silver-searcher}/bin/ag -l --vimgrep -g '\.l?hs$' . \ + # TODO: fix style issues in src/protolude and include it + ${silver-searcher}/bin/ag -l --vimgrep -g '\.l?hs$' --ignore-dir=src/protolude . \ | xargs ${stylish-haskell}/bin/stylish-haskell -i # Format Python files @@ -89,11 +90,12 @@ let ${ruff}/bin/ruff check . echo "Checking consistency of import aliases in Haskell code..." - ${hsie} check-aliases main src + ${hsie} check-aliases main src/PostgREST echo "Linting Haskell files..." # --vimgrep fixes a bug in ag: https://github.com/ggreer/the_silver_searcher/issues/753 - ${silver-searcher}/bin/ag -l --vimgrep -g '\.l?hs$' . \ + # TODO: fix lint issues in src/protolude and include it + ${silver-searcher}/bin/ag -l --vimgrep -g '\.l?hs$' --ignore-dir=src/protolude . \ | xargs ${hlint}/bin/hlint --hint=${hlintConfig} '';