:wave:! Sorry if this has been asked before, I was...
# general
a
👋! Sorry if this has been asked before, I wasn't able to find anything quite right while searching docs / Slack. Is there a good way to generate Python test targets with
batch_compatibility_tag
set inside of
tailor
, or should I do it post-hoc?
I wrote a libCST transformer to do this at first, and then realized I should ask if there's an easier way before shipping it 😄
h
I don't think there's a way. There is https://www.pantsbuild.org/2.19/reference/goals/tailor#alias_mapping which lets you use a custom target type, which in your case could be a macro that sets that tag, but if you don't want a macro then post-hoc is probably the way to go.
a
Sounds good, thanks! Btw love the work you all have been doing on Pants 2. It's been a world of difference planning adoption for Pants vs. trying to do the same for Bazel.
🙏 1
h
Ultimately we'd like to get rid of trivial target boilerplate entirely. But we're not quite there yet.