Skip to content

Commit a187a29

Browse files
committed
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)
1 parent 5cd8d51 commit a187a29

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ classes = ["OS"]
7777
known-first-party = ["ua_parser"]
7878
combine-as-imports = true
7979

80+
[tool.ruff.lint.per-file-ignores]
81+
"tests/test_legacy.py" = ["PT030"]
82+
8083
[tool.mypy]
8184
python_version = "3.9"
8285
files = "src,tests"

0 commit comments

Comments
 (0)