proud-dentist-22844
05/30/2021, 4:39 AM./pants tailor
? I'd like to have it add skip_pylint=True
whenever it adds a python_tests()
target. I would also like it to add another target (possibly a macro for a files target) in any directory with pack.yaml
(which is a market file for source roots).proud-dentist-22844
05/30/2021, 5:37 AMPutativeTargetsRequest
to add new targets for the relevant files near pack.yaml
, but it's not clear how I can add extra kwargs to the python targets identified by the python find_putative_targets
rule.happy-kitchen-89482
05/30/2021, 7:34 AMproud-dentist-22844
05/30/2021, 7:03 PMPutativeTargets
would add that macro to the BUILD files. But, macros are defined much later, so am I better off to create a new files-like target?proud-dentist-22844
05/31/2021, 12:37 AMhappy-kitchen-89482
05/31/2021, 5:57 AMdependencies=
? If not you can omit the Dependencies
from the core_fieldshappy-kitchen-89482
05/31/2021, 5:59 AMhappy-kitchen-89482
05/31/2021, 6:00 AMPutativeTargets
really just contains text components for generating BUILD file entrieshappy-kitchen-89482
05/31/2021, 6:00 AMfor_target_type()
to create the PutativeTarget
and would have to invoke the ctor directly, but I think that should work OK with macros, unless you have evidence to the contrary?happy-kitchen-89482
05/31/2021, 6:03 AMhappy-kitchen-89482
05/31/2021, 6:05 AMhappy-kitchen-89482
05/31/2021, 6:06 AMhappy-kitchen-89482
05/31/2021, 6:06 AMhappy-kitchen-89482
05/31/2021, 6:06 AMproud-dentist-22844
05/31/2021, 3:40 PMproud-dentist-22844
05/31/2021, 3:53 PMSmall bit of feedback: Do you expect the pack_metadata to needĀI'm undecided. I'm still figuring out how to wire up all the dependencies. I may need the? If not you can omit theĀdependencies=
Ā from the core_fieldsDependencies
dependencies
field depending on the final state.