From 450789aae6ba616e63dc1c8a5f047d3b0e387054 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Sat, 16 Jul 2022 11:55:14 +0100 Subject: [PATCH 1/2] configure strict pytest --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index d9373740a5c..aad1f4a66b9 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,5 @@ optional-tests = [ markers = [ "incompatible_with_mypyc: run when testing mypyc compiled black" ] +xfail_strict = true +filterwarnings = ["error"] From 57a21ad00c11c2cced905a1a745f5298cad5cc14 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Sat, 16 Jul 2022 12:15:48 +0100 Subject: [PATCH 2/2] ignore current warnings --- pyproject.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index aad1f4a66b9..8b4b4ba7c0c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,4 +40,9 @@ markers = [ "incompatible_with_mypyc: run when testing mypyc compiled black" ] xfail_strict = true -filterwarnings = ["error"] +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''', +]