Open snowman2 opened 1 year ago
Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:
I've got a PR to add glob-style ignore matching here:
I think if that is merged, it should be pretty easy to implement this with logic like:
--watch path/to/file.md
or --watch path/to/*.md
watch_files = glob(<that-expression>)
all_files = glob("**/*", recursive=True)
ignore_files = [ii for ii in all_files if ii not in watch_files]
And then append ignore_files
to the list that is created if somebody used the --ignore
flag.
Context
In the base directory of a repository, there can be files such as
CONTRIBUTING.md
that are included in the docs by reference:Proposal
It would be nice to be able to watch a specific set of files:
Otherwise, there is going to be a long list of ignores.
Tasks and updates
No response