You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the user should be able to create their own reload filter and pass it this way. The current way of customizing reload filters is very limited, while this way removes all limitations.
importwatchfilesfromgranianimportGranianreload_filter_instance=watchfiles.PythonFilter(extra_extensions=(".html",))
# Let's call it reload_filter_instance to avoid making breaking changesGranian(..., reload_filter_instance=reload_filter_instance).serve()
I am willing to submit a PR if you approve this change.
The text was updated successfully, but these errors were encountered:
Sounds good to me in regards of the Python interface, but for the CLI maybe an alternative approach could be to add the --reload-only-* counterparts of the existing --reload-ignore-* params?
At that point the usage would be smth like --reload-only-patterns *.py --reload-only-patterns *.html..
I think the user should be able to create their own reload filter and pass it this way. The current way of customizing reload filters is very limited, while this way removes all limitations.
I am willing to submit a PR if you approve this change.
The text was updated successfully, but these errors were encountered: