Closed magicmark closed 7 years ago
@magicmark Seems nice. BTW what do you trying todo ? :)
@morishitter Thanks!
As referenced, trying to have this work out the box with pre-commit (and other similar / CI tools that work by passing file lists to stdin), so we can have stylefmt automatically process files just as people are committing, before it hits source control.
Would be super helpful to not have to write a wrapper script around the cli to do this :)
(would also be great to include a hooks.yaml file, but i'll save that for another PR :) )
@magicmark So sorry, I'm late. Good stuff!
For CI and pre-commit hooks, it would be useful to be able to pass a list of files to format in-place to the cli.
This PR adds this option to the cli (--list/-l could arguably be better named, lmk!)
More context: https://github.com/pre-commit/pre-commit/issues/394