proud-dentist-22844
06/21/2022, 6:56 PM--builtins
for all the registered targets when linting pants-plugins/macros.py
?
pants-plugins/macros.py:20:26: F821 undefined name 'python_artifact'
pants-plugins/macros.py:34:5: F821 undefined name 'python_distribution'
pants-plugins/macros.py:45:26: F821 undefined name 'python_artifact'
pants-plugins/macros.py:71:5: F821 undefined name 'python_distribution'
pants-plugins/macros.py:81:5: F821 undefined name 'shell_sources'
pants-plugins/macros.py:86:5: F821 undefined name 'resources'
^^ that's annoying 😛bitter-ability-32190
06/21/2022, 6:57 PMbitter-ability-32190
06/21/2022, 6:57 PMwitty-crayon-22786
06/21/2022, 6:57 PMbitter-ability-32190
06/21/2022, 6:58 PMproud-dentist-22844
06/21/2022, 6:58 PMpants-plugins
resolve.bitter-ability-32190
06/21/2022, 6:58 PMproud-dentist-22844
06/21/2022, 6:58 PMpants_requirements
pulling pantsbuild.pants into that resolve...witty-crayon-22786
06/21/2022, 6:59 PMtailor
witty-crayon-22786
06/21/2022, 7:00 PMproud-dentist-22844
06/21/2022, 7:00 PMbitter-ability-32190
06/21/2022, 7:01 PMimport
the targets in BUILD
files. Similar to Bazel's load
🤔proud-dentist-22844
06/21/2022, 7:12 PMproud-dentist-22844
06/21/2022, 7:12 PMwitty-crayon-22786
06/21/2022, 7:13 PMJust this morning I was wondering what it’d be like if you could/had toyea. now that we’ve introduced hierarchy viathe targets inimport
files. Similar to Bazel’sBUILD
load
__defaults__
though, i think that it’s possible that macros could be defined hierarchically in parent BUILD
files as well… although whether that allows enough flexibility, i’m not sure.witty-crayon-22786
06/21/2022, 7:14 PMload
statements have always seemed too noisy to me, and having only a global preamble isn’t very scalable)bitter-ability-32190
06/21/2022, 7:15 PMproud-dentist-22844
06/21/2022, 7:17 PMclass my_macro(__macro__):
def __call__():
proud-dentist-22844
06/21/2022, 7:23 PMdef __macros__():
def my_macro(...):
...
hundreds-father-404
06/23/2022, 5:13 PM