If you used pyproject.toml file
You may prefer list those filters in pyproject.toml file :
[tool.pytest.ini_options] filterwarnings = [ "ignore::DeprecationWarning" ]