loud-stone-83419
02/04/2021, 12:34 AM./pants fix
<- inspired by the scalafix projectwitty-crayon-22786
02/04/2021, 12:38 AMwitty-crayon-22786
02/04/2021, 12:39 AMfmt
to invalidate the results of lint
, because they can’t run in parallel in the same run.witty-crayon-22786
02/04/2021, 12:40 AMscalafix
, you’d get into a situation where you needed to run ./pants fix
multiple times until it stabilized: the first run might create new targets, and then the second run would update those targets, etc.witty-crayon-22786
02/04/2021, 12:41 AMwitty-crayon-22786
02/04/2021, 12:43 AMfmt
feeds the results of consecutive formatters to one another. cc @hundreds-father-404jolly-midnight-72759
02/04/2021, 2:52 PMwitty-crayon-22786
02/04/2021, 6:15 PMjolly-midnight-72759
02/04/2021, 6:16 PMBUILD
files. This means there is a way to apply black
to them!hundreds-father-404
02/04/2021, 6:18 PM[black].build_files = true
? That could be a really neat feature we could add!hundreds-father-404
02/04/2021, 6:19 PMAlthough, it's an interesting problemAnd I think there's also challenges with how it would impact later parts of the run, e.g. if you ran
./pants fmt lint
. Stu has thoughts there. Although, fwict, not very different from the status quo that fmt
rewrites the worldwitty-crayon-22786
02/04/2021, 6:21 PMwitty-crayon-22786
02/04/2021, 6:21 PMfmt
with “init”)jolly-midnight-72759
02/04/2021, 6:22 PMfmt
but with a goal that everyone knows modifies BUILD
fileswitty-crayon-22786
02/04/2021, 6:22 PMhundreds-father-404
02/04/2021, 6:23 PMpants.backend.python.lint.black
hundreds-father-404
02/04/2021, 6:23 PM[tailor].autoformat_build_files = true
witty-crayon-22786
02/04/2021, 6:26 PMBUILD
file formatting onto the end of fmt
. because while formatting a BUILD
file would invalidate fmt
, it would** be a trivial invalidation… i.e., there would not be any need to keep running to a fixpointwitty-crayon-22786
02/04/2021, 6:27 PMBUILD
files)