Enable the RUF015 lint in Ruff

This commit is contained in:
Adam Turner
2024-11-30 19:19:34 +00:00
parent 439bff92c7
commit 2f1cd36798
4 changed files with 15 additions and 11 deletions

View File

@@ -39,7 +39,7 @@ def test_build(app):
)
assert len(undoc_c) == 1
# the key is the full path to the header file, which isn't testable
assert list(undoc_c.values())[0] == {('function', 'Py_SphinxTest')}
assert next(iter(undoc_c.values())) == {('function', 'Py_SphinxTest')}
assert 'autodoc_target' in undoc_py
assert 'funcs' in undoc_py['autodoc_target']