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:
@@ -17,6 +17,6 @@ def test_truncate_tool_result_long() -> None:
|
||||
|
||||
|
||||
def test_estimate_message_chars() -> None:
|
||||
assert estimate_message_chars(UserChatMessage(content="hello")) == 5 # noqa: PLR2004
|
||||
assert estimate_message_chars(UserChatMessage(content="hello")) == 5
|
||||
tool = ToolChatMessage(content="abc", tool_call_id="id1")
|
||||
assert estimate_message_chars(tool) == 6 # noqa: PLR2004
|
||||
assert estimate_message_chars(tool) == 6
|
||||
|
||||
Reference in New Issue
Block a user