-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI: Allow watching custom include / exclude patterns [feature-request] #594
Comments
Sounds like a good idea to me. Are you willing to send a PR? |
Honestly not a big fan of handing over copyright of my code to a company which is releasing the code under a restrictive licence like LGPL. Even for a small amount of code that would be required for this sort of PR, this is code I've already written in my own projects - which by handing over copyright and then receiving the code under LGPL means I can no longer use the code I've written (the code is not some internal patch for Dramatiq but a different project). I'd be less concerned if it was released under a permissive licence like MIT, Apache 2.0, BSD 2/3 Clause, but ideally I'd prefer to retain ownership of any contributions and instead ensure that the contribution is made under a permissive licence. |
* CLI watcher support include, exclude patterns. Fixes: #594 * Update contributors * Fix accidental change to CONTRIBUTORS
First of all, great project :)
Currently the CLI reloader only allows specifying the base path path to watch for changes (
--watch path/to/watch
). However the watcher is configured so that it only listens to changes on*.py
files (source code).I would like to be able to use the reloader with changes to other files such as configuration files.
It might look like the following:
Which would then be used like:
Aside: in documentation / help strings it might be worth noting that prior to Python 3.13 these patterns only support multiple name (
**
) globbing at the start of the pattern (ref)The text was updated successfully, but these errors were encountered: