Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cuda_core/tests/test_program_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _make_key(**overrides):
unspecified defaults to a valid cubin-from-c++ compile over "a"."""
from cuda.core.utils import make_program_cache_key

base = dict(code="a", code_type="c++", options=_opts(), target_type="cubin")
base = {"code": "a", "code_type": "c++", "options": _opts(), "target_type": "cubin"}
return make_program_cache_key(**{**base, **overrides})


Expand Down
8 changes: 4 additions & 4 deletions cuda_core/tests/test_tensor_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,10 +810,10 @@ class TestTensorMapHelpers:
@pytest.mark.parametrize(
("kwargs", "match"),
[
(dict(box_dim=5), "box_dim must be a tuple of ints"),
(dict(box_dim=(1, "x", 3)), r"box_dim\[1\] must be an int"),
(dict(box_dim=(32,), swizzle=2), "swizzle must be a TensorMapSwizzle"),
(dict(box_dim=(32,), interleave=0), "interleave must be a TensorMapInterleave"),
({"box_dim": 5}, "box_dim must be a tuple of ints"),
({"box_dim": (1, "x", 3)}, r"box_dim\[1\] must be an int"),
({"box_dim": (32,), "swizzle": 2}, "swizzle must be a TensorMapSwizzle"),
({"box_dim": (32,), "interleave": 0}, "interleave must be a TensorMapInterleave"),
],
ids=["box_dim_non_iterable", "box_dim_non_int_element", "swizzle_wrong_type", "interleave_wrong_type"],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def test_identical_settings_produce_same_path(self, monkeypatch, tmp_path):
def test_changed_directives_change_namespace(self, monkeypatch, tmp_path):
"""Different ``compiler_directives`` map to different namespaces (#7532 workaround)."""
self._set_env(monkeypatch, str(tmp_path))
base = dict(embedsignature=True, freethreading_compatible=True)
base = {"embedsignature": True, "freethreading_compatible": True}
with_linetrace = dict(base, linetrace=True)
p1 = self.build_hooks._cython_cache_path(self.package, compiler_directives=base)
p2 = self.build_hooks._cython_cache_path(self.package, compiler_directives=with_linetrace)
Expand Down
1 change: 0 additions & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ ignore = [
"S404", # allow subprocess imports

# style preferences
"C408", # unnecessary dict/list/tuple call (dict() is fine)
"E501", # line too long (formatter handles what it can; the rest is intentional)
"E741", # ambiguous variable name (I, l, O)
"B007", # unused loop control variable
Expand Down
Loading