ci/lint: per-file ignores for tests in ruff and basedpyright

Relax ANN/ARG/PLR/C901 and related rules under tests/**; silence noisy
basedpyright reports for test fakes and private helpers.
This commit is contained in:
2026-07-15 10:35:30 +08:00
parent c5745e0711
commit 5c13e06427
10 changed files with 58 additions and 25 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ def test_tree_max_entries(workspace: object) -> None:
assert "more entries not shown" in out
# only first 10 of 60 files listed as entries
listed = [line for line in out.splitlines() if line.strip().endswith(".txt")]
assert len(listed) == 10 # noqa: PLR2004
assert len(listed) == 10
def test_tree_origin_subdir(workspace: object) -> None: