mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
11 lines
No EOL
284 B
Bash
Executable file
11 lines
No EOL
284 B
Bash
Executable file
#!/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
|
|
fswatch -r -o pylib qt | xargs -n1 -I{} sh -c "$cmd" |