https://pantsbuild.org/ logo
#general
Title
# general
q

quaint-forest-8735

06/11/2022, 6:58 AM
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

happy-kitchen-89482

06/11/2022, 11:51 AM
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

hundreds-father-404

06/14/2022, 1:51 AM
4 Views