-
Notifications
You must be signed in to change notification settings - Fork 389
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
feat: use regex for ignoring hosts #779
base: master
Are you sure you want to change the base?
Conversation
Allow to use regexes for `ignore_hosts` to easily ignore hosts that are frequently changed e.g. `pipelinesghubeus*.actions.githubusercontent.com`
I would like to note that this change would break API backwards-compatibility (e.g. because |
@hartwork do you have any suggestion on how to modify it to make it API backwards compatible? |
The signature of ignore_hosts: set[str | re.Pattern] In the |
Correct me if I am wrong, but that will work only if the regex pattern is compiled, |
Even if the function signature is changed, that still has an interaction with the
Then in the config.py code:
This should be backwards compatible, at the cost of splitting out the localhost filter function from the existing host filters. |
Allow to use regexes for
ignore_hosts
to easily ignore hosts that are frequently changed e.g.pipelinesghubeus*.actions.githubusercontent.com