From 7483e047b17cda64abb9bdfacafd40a5f232a760 Mon Sep 17 00:00:00 2001 From: Claude Lab Date: Sun, 29 Mar 2026 13:51:14 +0200 Subject: [PATCH] test: enforce warnings-as-errors in pytest configuration All 1040 tests already pass with `pytest -W error`; this commit codifies that constraint in `pyproject.toml` so future regressions are caught automatically without needing to remember the manual flag. Closes #541 Co-Authored-By: Claude Sonnet 4.6 --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index a50a3a8e..1024300e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,6 +72,9 @@ sqlite-utils = "sqlite_utils.cli:cli" requires = ["setuptools"] build-backend = "setuptools.build_meta" +[tool.pytest.ini_options] +filterwarnings = ["error"] + [tool.flake8] max-line-length = 160 # Black compatibility, E203 whitespace before ':':