fancy-motherboard-24956
03/04/2020, 2:31 PMhundreds-father-404
03/04/2020, 2:36 PMgithooks/pre-commit
(which is already slow) has to run V1 fmt
over Scala
Otherwise, Scalafmt is a great tool. Foursquare loves italoof-angle-91616
03/04/2020, 2:49 PMnative-image
, see https://github.com/pantsbuild/pants/pull/8772aloof-angle-91616
03/04/2020, 2:49 PMfancy-motherboard-24956
03/04/2020, 2:49 PMaloof-angle-91616
03/04/2020, 2:49 PMfancy-motherboard-24956
03/04/2020, 2:49 PMaloof-angle-91616
03/04/2020, 2:50 PMaloof-angle-91616
03/04/2020, 2:50 PMhundreds-father-404
03/04/2020, 2:53 PM(We don’t have a lot of scala code to fmt anyway; and most commits should not touch it, so not format it?)We’re soon going to be able to stop using V1 lint and fmt. We already use exclusively V2 formatters, and are close to replacing Python checkstyle with Flake8 The only remaining linter would be MyPy, which Toolchain has a V2 implementation of but performance isn’t great so we haven’t yet upstreamed. (Maybe we should upstream for more V2 dogfooding though?) Once that happens, it would be nice to avoid ever using V1 in the pre-commit hook.
hundreds-father-404
03/04/2020, 2:55 PMfancy-motherboard-24956
03/04/2020, 2:59 PMhundreds-father-404
03/04/2020, 3:03 PMhundreds-father-404
03/04/2020, 3:04 PMfancy-motherboard-24956
03/04/2020, 3:08 PMfancy-motherboard-24956
03/04/2020, 3:08 PM