diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index b3505f831..5631a58a4 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,6 +4,9 @@ Jupytext ChangeLog 1.13.4-dev (2021-12-??) ----------------------- +**Changed** +- The test suite turns warnings into errors, after filtering the warnings that don't belong to Jupytext ([#823](https://github.com/mwouts/jupytext/issues/823)) + **Fixed** - The parsing of notebooks that don't have a YAML header (like `docs/formats.md`) was improved. - The test suite works with `pytest-randomly` ([#838](https://github.com/mwouts/jupytext/issues/838)) diff --git a/pyproject.toml b/pyproject.toml index 87eef4f66..907ad6dcf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,21 @@ [build-system] requires = ["jupyter_packaging~=0.7.9", "jupyterlab>=3.0.0,==3.*", "setuptools>=40.8.0", "wheel"] build-backend = "setuptools.build_meta" +[tool.pytest.ini_options] +filterwarnings = [ + # Uncomment this "error" to turn all unfiltered warnings into errors + "error", + # use single quote to denote raw strings in toml + 'ignore:Passing unrecognized arguments to super\(KernelSpec\).__init__:DeprecationWarning', + # In many tests + "ignore:Passing a schema to Validator.iter_errors is deprecated and will be removed in a future release:DeprecationWarning", + # in test_utf8_out_331 and two others + 'ignore:Exception ignored in.