fierce-truck-19259
04/16/2025, 6:33 PMpants fmt doesn't run format over BUILD-files, and rather requires you to run pants update-build-files? I know the latter does more, but how come the fmt doesn't at least run the formatter over them?kind-dusk-88649
04/16/2025, 6:52 PMfierce-truck-19259
04/16/2025, 6:56 PMfix won't format BUILD-files eitherfierce-truck-19259
04/16/2025, 6:57 PMcurved-manchester-66006
04/17/2025, 2:55 PMfierce-truck-19259
04/17/2025, 4:07 PMRe fix, see https://github.com/pantsbuild/pants/pull/17240Sorry I might be missing something, but formatting is not covered. Or do you mean that it could also similarly like the "renamers" be moved over?
kind-dusk-88649
04/18/2025, 5:03 AMfierce-truck-19259
04/22/2025, 4:57 PMIt at least does for me 🤷♂️ Do you have a fmt backend in pants.toml, f.ex:
"pants.backend.build_files.fmt.black"Oh interesting! Does that backend provide fix goals, maybe even fmt goals to run fmt on build files?
fierce-truck-19259
04/22/2025, 4:59 PMpants update-build-files --check validates format, so you should not have to include a backend to have that formatting being done.fierce-truck-19259
04/22/2025, 5:03 PMkind-dusk-88649
04/24/2025, 4:17 AMfierce-truck-19259
04/24/2025, 6:55 AMfmt, thanks! The confusion comes from them being formatted by update-build-files still even without the backend enabled, but then not by fmt unless enabling it 😅