From 632c5128488d486842b64757e229cb51751eebee Mon Sep 17 00:00:00 2001 From: Thomas Sibley Date: Fri, 4 Feb 2022 11:49:15 -0800 Subject: [PATCH] dev: Ignore deprecation warnings generated by pytest 7 for pytest-flake8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The warning was turned into an error by our pytest config, and thus resulted in test failures. There's an existing issue for pytest-flake8¹ that's 3 months old now with no movement so far. setuptools is also dealing with the same warnings.² If other issues arise that aren't fixed upstream, a longer term solution could be doing what we do with mypy and simply invoke flake8 directly instead of via a pytest plugin. ¹ https://github.com/tholo/pytest-flake8/issues/83 ² https://github.com/pypa/setuptools/issues/3079 --- pytest.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pytest.ini b/pytest.ini index 9e3d6ad3..da67dd11 100644 --- a/pytest.ini +++ b/pytest.ini @@ -13,3 +13,5 @@ python_functions = pytest_* filterwarnings = error ignore:SelectableGroups dict interface:DeprecationWarning:flake8 + ignore: is not using a cooperative constructor:pytest.PytestDeprecationWarning + ignore:The .+? argument to Flake8Item is deprecated:pytest.PytestRemovedIn8Warning