bitter-ability-32190
01/14/2022, 2:55 PM./pants fmt lint
?bitter-ability-32190
01/14/2022, 2:57 PMyapf
certainly isn't the fastest formatter in the west, and paying for format tools to run twice certainly isn't ideal.
Of course, using --changed-since
minimizes the files being run, so the timing overhead might be "annoying" at best. But this also bleeds into the issue of lint
-ing dependees with formatters, which is wasteful as well 😬happy-kitchen-89482
01/14/2022, 3:19 PMyapf-when-run-as-a-linter
is treated as a separate tool than yapf-when-run-as-a-formatter
happy-kitchen-89482
01/14/2022, 3:19 PMhappy-kitchen-89482
01/14/2022, 3:19 PMbitter-ability-32190
01/14/2022, 3:21 PMfmt
and lint
aren't even related. It's just the plugins that mix the two.bitter-ability-32190
01/14/2022, 3:24 PMlint
not running on files where the fmt
cache is hot, or lint
running on the subset of files where the lint
cache isn't hot)bitter-ability-32190
01/14/2022, 3:26 PM./pants fmt lint
could have an option to imply not running the formatters under lint
bitter-ability-32190
01/14/2022, 3:27 PMhundreds-father-404
01/14/2022, 5:06 PMhappy-kitchen-89482
01/14/2022, 7:54 PMhappy-kitchen-89482
01/14/2022, 7:55 PMhappy-kitchen-89482
01/14/2022, 7:55 PMhappy-kitchen-89482
01/14/2022, 7:56 PMhappy-kitchen-89482
01/14/2022, 7:56 PMhappy-kitchen-89482
01/14/2022, 7:57 PMfmt
first, and you have multiple formatters, then formatter B might stomp on the output of formatter A, so that when subsequently formatter A is run as a linter, it will fail!happy-kitchen-89482
01/14/2022, 7:57 PMhappy-kitchen-89482
01/14/2022, 7:58 PMbitter-ability-32190
01/14/2022, 7:58 PMhappy-kitchen-89482
01/14/2022, 7:58 PMbitter-ability-32190
01/14/2022, 7:58 PMhappy-kitchen-89482
01/14/2022, 7:59 PMbitter-ability-32190
01/14/2022, 8:00 PM