From c13e829e145daf96ea2be9b4d35fc2a94a1b33bd Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 22 Aug 2023 11:46:08 -0400 Subject: Replace pylint with ruff Ruff is like a million times faster, and I mostly ignored pylint's suggestions anyway. I also took this opportunity to move lint tools into a runtime dependency on Lint.hs, which meant adding a wrapper to the Haskell builder, which was easy enough. This paves the way for proper rundeps in bild. --- Biz/Ide/repl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Biz/Ide') diff --git a/Biz/Ide/repl b/Biz/Ide/repl index 5a7b615..cf0378d 100755 --- a/Biz/Ide/repl +++ b/Biz/Ide/repl @@ -44,27 +44,27 @@ fi if [ -z ${var+PORT} ]; then echo "warn: repl: ghci does not support binding to a port" fi - flags+=(--packages "$BILD.private.$packageSet (h: with h; [$langdeps])") + flags+=(--packages "$BILD.bild.haskell.ghcWith (h: with h; [$langdeps])") command=${CMD:-"ghci -i${BIZ_ROOT:?} -ghci-script ${BIZ_ROOT:?}/.ghci ${targets[@]}"} ;; Scm) for lib in ${langdeps[@]}; do - flags+=(--packages "$BILD.private.nixpkgs.guile-${lib}") + flags+=(--packages "$BILD.guile-${lib}") done - flags+=(--packages "$BILD.private.nixpkgs.guile") + flags+=(--packages "$BILD.guile") command=${CMD:-"guile -L ${BIZ_ROOT:?} -C ${BIZ_ROOT:?}/_/int --r7rs --listen=${PORT:-37146}"} ;; Lisp) - flags+=(--packages "$BILD.private.$packageSet (p: with p; [asdf swank $langdeps])") + flags+=(--packages "$BILD.bild.$packageSet (p: with p; [asdf swank $langdeps])") command=${CMD:-"sbcl --eval '(require :asdf)' --eval '(require :swank)' --eval '(swank:create-server :port ${PORT:-4005})' --load $targets"} ;; Rs) - flags+=(--packages "$BILD.private.nixpkgs.rustc") + flags+=(--packages "$BILD.nixpkgs.rustc") command=bash ;; Py) - langdeps="$langdeps pylint mypy" - flags+=(--packages "$BILD.private.$packageSet (p: with p; [$langdeps])") + langdeps="$langdeps mypy" + flags+=(--packages "$BILD.bild.python.pythonWith (p: with p; [$langdeps])") command=${CMD:-"python -i $targets"} ;; *) -- cgit v1.2.3