adorable-engine-71736
11/16/2021, 8:19 PMpython_tests
target. I would like to add some regression tests that make use of data files (eg json)
is there a way to have these included in the test run ? I tried adding `files`/`resources` but python_tests
doesnt have these params, and if i try to add a non-py file to sources
that also failsclean-city-64472
11/16/2021, 8:23 PMresources(
name="data",
sources=[
"**/*.json",
],
)
adorable-engine-71736
11/16/2021, 8:23 PMloud-laptop-17949
11/16/2021, 10:06 PMhundreds-father-404
11/16/2021, 10:12 PMclean-city-64472
11/16/2021, 10:16 PMhundreds-father-404
11/16/2021, 10:19 PMloud-laptop-17949
11/16/2021, 10:51 PMhundreds-father-404
11/16/2021, 10:56 PMloud-laptop-17949
11/16/2021, 11:00 PMearly-jelly-55072
11/18/2021, 5:32 PMpyproject.toml
supported already, it seems like a good place when a project is leaning heavily on inference and wants minimal BUILD
files.hundreds-father-404
11/18/2021, 5:38 PMearly-jelly-55072
11/18/2021, 6:39 PMhundreds-father-404
11/18/2021, 6:41 PMpants.toml
rather than a Python-specific file like pyproject.toml
. But definitely that's an option to move more config into pants.toml
I bias towards it not being the best approach because it doesn't scale well. We generally believe metadata should live near the code it describes.
But definitely still worth considering! What do you think are the benefits of putting in a centralized config file?early-jelly-55072
11/18/2021, 6:49 PMdependencies
section, but that is for pip installed dependencies.