Hi
One way is to make one formatting subtask per file.
Your dodo.py code shall take care of identifying all the files to possibly format and generate a formatting task per such file. No need to take care if it actually needs formatting or not – doit will take care of it.
It assumes your formatter knows, how to format just one file.
Jan
PS: Another option is to use a formatter, which is so fast that you do not have to optimize number of files processed. For python it would be ruff.
---
Honza Vlčinský
jan.vl...@gmail.com | +420-608979040
--
You received this message because you are subscribed to the Google Groups "python-doit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
python-doit...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/python-doit/1aeac775-07a8-4dd9-9146-d67e7468574bn%40googlegroups.com.