hotload
hotload copied to clipboard
Right now, I don't have good feedback on whether I break any of the supported Python versions. Nix could help solve that. @jlesquembre was kind enough to provide nix declarations...
This PR combines https://github.com/teodorlu/hotload/pull/5 and https://github.com/teodorlu/hotload/pull/6 Read them first. https://github.com/tingstad/hotload/runs/7168717234?check_suite_focus=true - Add shell test https://github.com/teodorlu/hotload/pull/5 - Reload watched (sub)modules automatically https://github.com/teodorlu/hotload/pull/6 - Test refactor: add mymath.py - Test: sub-module reload
I have observed two potential issues: ### 1. reload duplication Sometimes when changing a file I see several lines of `Successfully reloaded`. For example when I run `touch file`. I...
Right now, we hand roll CLI arguments. We allow something like: hotload PYTHON_MODULE_OR_SCRIPT [--entrypoint ENTRYPOINT_FUNCTION] [--recursive] [--no-clear] But this isn't reflected in the helptext. I know we have argparse --...
As noted in #6 . entrypoint lets your specify a function that hotload should call after it's done reloading. Example: ```python def plus(x, y): return x + 2 def hotload_entrypoint():...