From: Thomas Grainger Date: Sat, 16 Jul 2022 12:18:55 +0000 (+0100) Subject: configure strict pytest and filterwarnings=['error', ... (#3173) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/df5a87d93bd81c719a9c3f21da84133eaceef7b3?hp=b0eed7c6bd5f04f0ea6b6592d8a3ab63d8a01252 configure strict pytest and filterwarnings=['error', ... (#3173) * configure strict pytest * ignore current warnings --- diff --git a/pyproject.toml b/pyproject.toml index d937374..8b4b4ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,7 @@ build-backend = "setuptools.build_meta" [tool.pytest.ini_options] # Option below requires `tests/optional.py` +addopts = "--strict-config --strict-markers" optional-tests = [ "no_blackd: run when `d` extra NOT installed", "no_jupyter: run when `jupyter` extra NOT installed", @@ -38,3 +39,10 @@ optional-tests = [ markers = [ "incompatible_with_mypyc: run when testing mypyc compiled black" ] +xfail_strict = true +filterwarnings = [ + "error", + '''ignore:Decorator `@unittest_run_loop` is no longer needed in aiohttp 3\.8\+:DeprecationWarning''', + '''ignore:Bare functions are deprecated, use async ones:DeprecationWarning''', + '''ignore:invalid escape sequence.*:DeprecationWarning''', +]