From fb1469a0b91d7f8a193c71e5679b3991bbabac2c Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Tue, 20 Feb 2024 17:47:18 +0000 Subject: [PATCH] Pytest fail when warnings are raised (#111) --- {{cookiecutter.package_name}}/pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/{{cookiecutter.package_name}}/pyproject.toml b/{{cookiecutter.package_name}}/pyproject.toml index ce7b359..628428f 100644 --- a/{{cookiecutter.package_name}}/pyproject.toml +++ b/{{cookiecutter.package_name}}/pyproject.toml @@ -92,6 +92,9 @@ exclude = ["tests*"] [tool.pytest.ini_options] addopts = "--cov={{cookiecutter.module_name}}" +filterwarnings = [ + "error", +] [tool.black] target-version = ['py39', 'py310', 'py311']