Working with the options semantics for the JSON sc...
# general
f
Working with the options semantics for the JSON schema of our
pants.toml
file. Is there any special case where an option that represents a collection won't be supporting the following types 🧵
The arrays can be: • a string (that follows a particular syntax):
Copy code
[pytest]
extra_requirements = "+['pytest-vcr']"
• an array:
Copy code
[pytest]
extra_requirements = ["pytest-vcr"]
• an object (with keys being only
add
or
remove
):
Copy code
[pytest]
extra_requirements.add = ["pytest-vcr"]
E.g. https://www.pantsbuild.org/docs/reference-pytest#extra_requirements
b
Just FWIW I don't think we have to catch and solve everything from the getgo.
But maybe go look at the options loading tests?
f
sorry, which one do you refer to?
c
I think this is what @bitter-ability-32190 is suggesting as a good start to get some answers: https://github.com/pantsbuild/pants/blob/0dec547a656617ab0f7f847d04e6c19cfae2076e/src/python/pants/option/options_test.py
🙌 1
f
ah you mean this, thanks!