feat: use regex for ignoring hosts#779
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_hoststo easily ignore hosts that are frequently changed e.g.pipelinesghubeus*.actions.githubusercontent.com