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
+2 -2
View File
@@ -42,7 +42,7 @@ def test_open_in_editor_splits_args(tmp_path: Path, monkeypatch: pytest.MonkeyPa
path = tmp_path / "plyngent.toml"
calls: list[list[str]] = []
def fake_run(argv: list[str], check: bool = False) -> object: # noqa: FBT001, FBT002
def fake_run(argv: list[str], check: bool = False) -> object:
del check
calls.append(list(argv))
@@ -112,7 +112,7 @@ def test_config_edit_command(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) ->
monkeypatch.setenv("EDITOR", "true")
calls: list[list[str]] = []
def fake_run(argv: list[str], check: bool = False) -> object: # noqa: FBT001, FBT002
def fake_run(argv: list[str], check: bool = False) -> object:
del check
calls.append(list(argv))