-
Notifications
You must be signed in to change notification settings - Fork 2
Implementing walk #2
Copy link
Copy link
Closed
Labels
good first issueGood for newcomersGood for newcomers
Description
An additional function that would be really helpful to have here would be a generator function that calls os.walk on a path, apply includes/excludes, and yields the resulting paths.
Something like
tuber.walk(root: Path, includes: Iterable[str]=("*.py",), excludes: Iterable[str]=(".git", "*.ext.py"))
For this issue
- Implement
walkusing an API similar to the above - Bonus points for defaulting
excludesto the same as black uses - Make sure there's a test
- Submit a PR!
Quick development instructions
git clone clone https://github.com/python-packaging/tubercd tubermake venvsource .venv/bin/activatemake test(runs unittest)
Make sure the code is formatted (make format) and types are good (make lint) before submitting a PR to save iteration time waiting on CI.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers