Has anyone considered adding `./pants tailor` as a...
# general
q
Has anyone considered adding
./pants tailor
as a pre-commit hook? We're looking into ways to reduce the number of moving parts for data scientists to work in our monorepo, and are thinking about the tradeoffs of automating different steps
h
The output of tailor might need manual tweaking or at least verifying, but you could run tailor in
--check
mode as a pre-commit hook. That won't modify BUILD files but will tell you about any modifications it would have made, and sets a non-zero return code if there were any.
So that way you can check at pre-commit time that it has been run
h