https://pantsbuild.org/ logo
g

glamorous-accountant-97217

01/23/2023, 10:59 PM
i suffered a little bit today because the pytest subsystem doesn’t support the filterwarnings ini option. (this was only partially because of pants-- problem was that filerwarnings is more powerful than and different from
-W
, but i had to use
-W
via pytest
args
in pants). is there any reason not to support all the built-in ini options in pants? what about supporting just
filterwarnings
for now?
1
c

curved-television-6568

01/23/2023, 11:02 PM
doesn’t pants pick up if you have a
pytest.ini
file? Or otherwise a pytest config section in a pyproject.toml file. Pants have this in theirs for instance:
Copy code
[tool.pytest.ini_options]
asyncio_mode = "auto"
markers = ["platform_specific_behavior"]
g

glamorous-accountant-97217

01/23/2023, 11:03 PM
oh, yes, i think i new this at some point but forgot 🤦‍♂️ . it wouldn’t be good to duplicate all the configuration options in the pants.toml: https://www.pantsbuild.org/docs/reference-pytest#config_discovery
c

curved-television-6568

01/23/2023, 11:04 PM
g

glamorous-accountant-97217

01/23/2023, 11:04 PM
thank you for pointing this out
c

curved-television-6568

01/23/2023, 11:04 PM
you’re welcome 🙂
4 Views