MarcoGorelli/auto-walrus

Recursively apply to directories

petrem opened this issue ยท 8 comments

petrem commented

It would be slightly useful to allow the tool to take directories and apply the changes recursively to all *.py files.
Not that you couldn't find . -name \*.py -exec auto-walrus --line-length 88 '{}' \; or something.

Would you see this as a desirable feature? If so (without signing any promise in blood), I would try to write a PR.

sorry, I only accept feature requests if accompanied by blood promises

petrem commented

ok cross(self.heart) && hope(sys.exit())...?

I'd accept a PR, although I'm a little surprised that anyone is actually using this package, it was intended as more of a joke than anything ๐Ÿ˜„

petrem commented

Well, it's all in good fun, then ;-). I didn't forget my promise, I have some code written that looks like working, but haven't got yet time to write some tests, too.

could you check how cython-lint does it please? we can reuse the same config from there

Hi uh, is this fixed?

I think

Fixes the issue but it's not on PyPi?


Sorry about that, I'll make a release now

should be available now - sorry for the delay y'all, hope you enjoy using the walrus operator to your hearts' content