diff options
author | Ben Sima <ben@bsima.me> | 2023-08-22 11:46:08 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2023-08-22 11:46:08 -0400 |
commit | c13e829e145daf96ea2be9b4d35fc2a94a1b33bd (patch) | |
tree | beaec3d7c830b5c59561f1a225ea37ac1731c54e /Biz/Ide/repl | |
parent | 9eac46cfeddc65938b3cc946629a9c3d93ac35ee (diff) |
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.
Diffstat (limited to 'Biz/Ide/repl')
-rwxr-xr-x | Biz/Ide/repl | 14 |
1 files changed, 7 insertions, 7 deletions
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"} ;; *) |