Skip to content

Commit a9f3036

Browse files
style: ruff-format cython warning cleanliness tests
Signed-off-by: Omar Atie <atiaomar1978-hub@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 72115e8 commit a9f3036

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

cuda_bindings/tests/test_cython_warning_cleanliness.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ def test_build_hooks_enable_cython_warning_errors():
4040
and isinstance(node.value, ast.Constant)
4141
and node.value.value is True
4242
}
43-
assert "warning_errors" in assigned, (
44-
"cuda_bindings/build_hooks.py must set Cython Options.warning_errors = True"
45-
)
43+
assert "warning_errors" in assigned, "cuda_bindings/build_hooks.py must set Cython Options.warning_errors = True"
4644

4745

4846
@pytest.mark.agent_authored(model="grok-4.5")
@@ -55,10 +53,13 @@ def test_windll_pxd_declares_load_library_flag_as_const():
5553
text,
5654
re.MULTILINE,
5755
), "LOAD_LIBRARY_SEARCH_SYSTEM32 must be declared as const DWORD (no assignment)"
58-
assert re.search(
59-
r"LOAD_LIBRARY_SEARCH_SYSTEM32\s*=",
60-
text,
61-
) is None
56+
assert (
57+
re.search(
58+
r"LOAD_LIBRARY_SEARCH_SYSTEM32\s*=",
59+
text,
60+
)
61+
is None
62+
)
6263

6364

6465
@pytest.mark.agent_authored(model="grok-4.5")

0 commit comments

Comments
 (0)