File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -171,11 +171,22 @@ disable = [
171171]
172172
173173[tool .pytest .ini_options ]
174- addopts = " -W=all -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning - vv"
174+ addopts = " -vv"
175175testpaths = [" tests" , " src" ]
176176asyncio_default_fixture_loop_scope = " function"
177177asyncio_mode = " auto"
178178required_plugins = [" pytest-asyncio" , " pytest-mock" ]
179+ filterwarnings = [
180+ " error" ,
181+ " once::DeprecationWarning" ,
182+ " once::PendingDeprecationWarning" ,
183+ # We ignore warnings about protobuf gencode version being one version older
184+ # than the current version, as this is supported by protobuf, and we expect to
185+ # have such cases. If we go too far, we will get a proper error anyways.
186+ # We use a raw string (single quotes) to avoid the need to escape special
187+ # characters as this is a regex.
188+ ' ignore:Protobuf gencode version .*exactly one major version older.*:UserWarning' ,
189+ ]
179190
180191[tool .mypy ]
181192explicit_package_bases = true
You can’t perform that action at this time.
0 commit comments