Skip to content

Commit a9cf2fa

Browse files
committed
test: ignore ANN in README code example linting
README doc snippets are illustrative and shouldn't require full type annotations. Lost this when reverting tests/** in d6b3ae4.
1 parent 91a983f commit a9cf2fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ async def test_desktop(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
9696
# TODO(v2): Change back to README.md when v2 is released
9797
@pytest.mark.parametrize("example", find_examples("README.v2.md"), ids=str)
9898
def test_docs_examples(example: CodeExample, eval_example: EvalExample):
99-
ruff_ignore: list[str] = ["F841", "I001", "F821"] # F821: undefined names (snippets lack imports)
99+
ruff_ignore: list[str] = ["F841", "I001", "F821", "ANN"] # F821: undefined names (snippets lack imports)
100100

101101
# Use project's actual line length of 120
102102
eval_example.set_config(ruff_ignore=ruff_ignore, target_version="py310", line_length=120)

0 commit comments

Comments
 (0)