quaint-telephone-89068
11/22/2022, 2:25 PMpython_sources field, I have to repeat the default globs (which includes remembering to omit tests and include .pyi files). This is painful and not upgrade-friendly.
Additionally, people want to do python_sources(sources=["**/*.py"]) however, that isn't quite right (again, tests and pyis, and conftests).
Describe the solution you'd like
A way to refer to the defaults inside my BUILD file so I can mangle it.
Strawman:
# Using `python_sources.sources.default`
python_sources(
sources = python_sources.sources.default + ["TotallyAPythonFile"]
)
# or
python_sources(
sources = [
"**/" + default for default in
python_sources.sources.default
]
)
Describe alternatives you've considered
Hardcording 🤮
Additional context
🎩
pantsbuild/pantsuser
12/06/2022, 12:15 PM