mirror of
https://github.com/NCBM/plyngent.git
synced 2026-07-23 05:55:16 +08:00
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:
@@ -181,7 +181,7 @@ def test_pty_session_limit_continue(workspace: object) -> None:
|
||||
second = call_sync(open_pty, ["sleep", "30"])
|
||||
assert "session_id=" in first
|
||||
assert "session_id=" in second
|
||||
assert PtyManager.max_sessions >= 2 # noqa: PLR2004
|
||||
assert PtyManager.max_sessions >= 2
|
||||
finally:
|
||||
PtyManager.close_all()
|
||||
PtyManager.configure(max_sessions=previous)
|
||||
|
||||
Reference in New Issue
Block a user