prehistoric-afternoon-67621
03/25/2022, 4:27 PM./pants fmt :: with black to run on my BUILD files? I've seen reference to that ability but not sure how to wire it up. πcurved-television-6568
03/25/2022, 4:30 PM./pants update-build-files that does that for you.rhythmic-battery-45198
03/25/2022, 4:30 PMupdate-build-files goalrhythmic-battery-45198
03/25/2022, 4:31 PMpants.toml ?curved-television-6568
03/25/2022, 4:32 PMrhythmic-battery-45198
03/25/2022, 4:32 PMprehistoric-afternoon-67621
03/25/2022, 4:36 PMprehistoric-afternoon-67621
03/25/2022, 4:38 PM[python.interpreter_constraints] option. πhundreds-father-404
03/25/2022, 5:25 PM[black].interpreter_constraintshundreds-father-404
03/25/2022, 5:25 PMtailor with update-build-files, and then possiblyyyy to merge some of that with fmtprehistoric-afternoon-67621
03/25/2022, 5:26 PMprehistoric-afternoon-67621
03/25/2022, 5:27 PM[python].interpreter_constraints but when I would try to run ./pants update-build-files it would fail because the lockfile didn't match [black].interpreter_constraints . Minor edge case but was confusing to me until nowhundreds-father-404
03/25/2022, 5:28 PMpolite-garden-50641
03/25/2022, 5:28 PMfind . -name BUILD | xargs black locally and find . -name "BUILD" | xargs python -m black --check in ci (you have to have black installed locally or in CI somehow).
I didn't try to move the new update build files goal....prehistoric-afternoon-67621
03/25/2022, 5:29 PMprehistoric-afternoon-67621
03/25/2022, 6:34 PM