From ca0f1d3dd819b2a9b989cbe9b858732edff9b4c4 Mon Sep 17 00:00:00 2001 From: masklinn Date: Wed, 24 Dec 2025 20:20:29 +0100 Subject: [PATCH] Disable PT030 for legacy tests This complains that `DeprecationWarning` is too broad, and I really don't care. Disable via per-file-ignore setting, because ruff conflicts with itself when trying to disable via magic stanza in the file (apparently `ruff: noqa` doesn't work if there's a leading space, but then ruff format is amgy) --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 33fc825..fb94bbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,6 +77,9 @@ classes = ["OS"] known-first-party = ["ua_parser"] combine-as-imports = true +[tool.ruff.lint.per-file-ignores] +"tests/test_legacy.py" = ["PT030"] + [tool.mypy] python_version = "3.9" files = "src,tests"