diff options
Diffstat (limited to 'Biz/Lint.hs')
-rw-r--r-- | Biz/Lint.hs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Biz/Lint.hs b/Biz/Lint.hs index f9b16d0..be73229 100644 --- a/Biz/Lint.hs +++ b/Biz/Lint.hs @@ -123,6 +123,14 @@ hlint = fixArgs = Nothing } +black :: Linter +black = + Linter + { exe = "black", + checkArgs = ["--check"], + fixArgs = Just [] + } + deadnix :: Linter deadnix = Linter @@ -164,7 +172,9 @@ runOne mode root cwd path_ = results +> traverse_ printResult >> results [ lint mode ormolu path_, lint mode hlint path_ ] - Just (Namespace _ Py) -> [] -- python linters are run in Builder.nix checkPhase + Just (Namespace _ Py) -> + [ lint mode black path_ + ] Just (Namespace _ Sh) -> [lint mode shellcheck path_] Just (Namespace _ Nix) -> [lint mode deadnix path_] Just (Namespace _ Scm) -> [pure <| NoOp path_] |