https://pantsbuild.org/ logo
a

abundant-analyst-12845

11/25/2022, 4:34 PM
hi in poetry project that has its own
pytest
and other blocks defined that pants supports under the backend configuration. will one need remove/duplicate the definitions from the
pyproject.toml
into
pants.toml
or is pants "spart" enough to detect that and use the definitions from
pyproject.toml
. Thanks in advance
e

enough-analyst-54434

11/25/2022, 4:37 PM
It should be smart enough. The relevant options under
[pytest]
are
config
and
config_discovery
and they default the way you'd want: https://www.pantsbuild.org/docs/reference-pytest#config_discovery