Skip to content

Commit 3ae1ece

Browse files
committed
style: apply pre-commit formatting updates
Run repository hooks and keep the NVML fixture changes compliant by applying ruff import ordering and formatting adjustments. Made-with: Cursor
1 parent 7f89473 commit 3ae1ece

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

cuda_bindings/cuda/bindings/_test_helpers/arch_check.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ def hardware_supports_nvml():
4242
finally:
4343
if initialized:
4444
nvml.shutdown()
45+
46+
4547
@contextmanager
4648
def unsupported_before(device: int, expected_device_arch: nvml.DeviceArch | str | None):
4749
device_arch = nvml.device_get_architecture(device)

cuda_bindings/tests/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
import sys
66
from importlib.metadata import PackageNotFoundError, distribution
77

8-
import pytest
9-
108
import cuda.bindings.driver as cuda
9+
import pytest
1110
from cuda.bindings._test_helpers.arch_check import hardware_supports_nvml
1211

1312
# Import shared test helpers for tests across subprojects.

cuda_bindings/tests/test_arch_check.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
import pytest
6-
76
from cuda.bindings import nvml
87
from cuda.bindings._test_helpers import arch_check
98
from cuda.pathfinder import DynamicLibNotFoundError

0 commit comments

Comments
 (0)