There is an API to pass it non-python files (so that alongside your Python app it can watch your configuration files for instance/HTML files).
However it does not work for just watching a directory + running a command, it is specifically for watching Python code.