From 08b76e4489b1d91f3c8671657980adea9ef9e2e4 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 1 Feb 2021 17:29:03 +1000 Subject: [PATCH] add helper script to run mypy daemon --- qt/dmypy-watch.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 qt/dmypy-watch.sh diff --git a/qt/dmypy-watch.sh b/qt/dmypy-watch.sh new file mode 100755 index 000000000..d5e2b3a00 --- /dev/null +++ b/qt/dmypy-watch.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# +# semi-working support for mypy daemon +# - install fs_watch +# - build anki/aqt wheels first +# - create a new venv and activate it +# - install the wheels +# - then run this script from this folder + +(sleep 1 && touch aqt) +. ~/pyenv/bin/activate +fswatch -o aqt | xargs -n1 -I{} sh -c 'printf \\033c; dmypy run aqt' +