https://pantsbuild.org/ logo
#general
Title
# general
j

jolly-midnight-72759

11/20/2020, 2:10 AM
I've been manually running
black
on
BUILD
files to help make them more consistent. Is there a way to use
./pants fmt
to do this for me? Our
black
config file already includes the filename pattern, but I suspect
./pants
is not passing the files to
black
for formatting.
h

happy-kitchen-89482

11/20/2020, 2:37 AM
Yes, that's true, BUILD files don't count as source files for that purpose. But there is precedent: The 'validate' goal can run on all files, including BUILD files.
🙏🏽 1
👍 1