2021-04-14 10:06:16 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Run mypy as a daemon each time files change. Requires
|
|
|
|
# fswatch to be installed, and not working on Windows.
|
|
|
|
|
|
|
|
# run once at startup
|
|
|
|
cmd='printf \\033c\\n; bazel run qt:dmypy'
|
|
|
|
sh -c "$cmd"
|
|
|
|
|
|
|
|
# then monitor for changes
|
2022-01-23 11:17:08 +01:00
|
|
|
fswatch -r -o --event Updated pylib qt | xargs -n1 -I{} sh -c "$cmd"
|