loud-laptop-17949
01/18/2023, 9:52 PMhigh-yak-85899
01/18/2023, 9:52 PMhigh-yak-85899
01/18/2023, 9:53 PMBUILD.pants
code as python (starlark, but good enough) and then it is subject to the same rules as the rest of our repo.bitter-ability-32190
01/18/2023, 9:54 PMloud-laptop-17949
01/18/2023, 9:56 PMhigh-yak-85899
01/18/2023, 9:57 PMloud-laptop-17949
01/18/2023, 9:57 PMloud-laptop-17949
01/18/2023, 9:57 PMhigh-yak-85899
01/18/2023, 9:58 PMenough-analyst-54434
01/18/2023, 10:00 PMbitter-ability-32190
01/18/2023, 10:01 PMfresh-cat-90827
01/18/2023, 10:15 PMI have tried bazel's buildozer but it can't seem to work for me.I used
buildozer
only for a simple refactoring (like setting certain fields on and off), but it looks to be very powerful based on the docs and sample usage calls. Maybe you could share what you are trying to edit and we could experiment?fresh-cat-90827
01/18/2023, 10:16 PMfresh-cat-90827
01/18/2023, 10:16 PM$ buildozer 'set skip_yapf True' 'set skip_mypy True' ///...:%python_sources
$ buildozer 'set skip_yapf False' projectdir/subdir:%python_sources
loud-laptop-17949
01/18/2023, 11:43 PMfresh-cat-90827
01/18/2023, 11:44 PMloud-laptop-17949
01/18/2023, 11:46 PM.pants
in the first place (we have a bunch of random shell scripts called build
)fresh-cat-90827
01/18/2023, 11:47 PMbuild
!enough-analyst-54434
01/18/2023, 11:47 PMloud-laptop-17949
01/18/2023, 11:47 PMfresh-cat-90827
01/18/2023, 11:49 PMfresh-cat-90827
01/18/2023, 11:50 PMbuildozer
on anything else than BUILD, I am afraid. Folks complained about not being able to configure it, but they have only fixed it for BUCK 🙂 https://github.com/bazelbuild/buildtools/pull/58/filesfresh-cat-90827
01/18/2023, 11:50 PMenough-analyst-54434
01/18/2023, 11:50 PMfresh-cat-90827
01/18/2023, 11:51 PMfresh-cat-90827
01/18/2023, 11:51 PMloud-laptop-17949
01/18/2023, 11:59 PMfresh-cat-90827
01/19/2023, 12:04 AMfresh-cat-90827
01/19/2023, 12:04 AM