diff options
author | Ben Sima <ben@bsima.me> | 2023-01-01 20:48:00 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2023-01-01 20:48:00 -0500 |
commit | 3ec802e036cba81860dc790b066f22641489110f (patch) | |
tree | 1491e2f15be9fb336deadceb2c847e07e066043e /Biz/Lint.hs | |
parent | 9699335376fa4bd5a9c7f2dcfb6bbe6a0165be40 (diff) |
Add black and pylint
Diffstat (limited to 'Biz/Lint.hs')
-rw-r--r-- | Biz/Lint.hs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Biz/Lint.hs b/Biz/Lint.hs index 0341954..39c42db 100644 --- a/Biz/Lint.hs +++ b/Biz/Lint.hs @@ -131,6 +131,14 @@ pylint = fixArgs = Nothing } +black :: Linter +black = + Linter + { exe = "black", + checkArgs = ["--check"], + fixArgs = Just [] + } + deadnix :: Linter deadnix = Linter @@ -169,7 +177,7 @@ runOne mode root cwd path_ = results +> traverse_ printResult >> results [ lint mode ormolu path_, lint mode hlint path_ ] - Just (Namespace _ Py) -> [pure <| NoOp path_] + Just (Namespace _ Py) -> [lint mode pylint path_, lint mode black path_] Just (Namespace _ Sh) -> [lint mode shellcheck path_] Just (Namespace _ Nix) -> [lint mode deadnix path_] Just (Namespace _ Scm) -> [pure <| NoOp path_] |