@@ -60,7 +60,7 @@ def _add_cuda_libdir_to_dll_path():
6060
6161
6262try :
63- os .add_dll_directory # noqa: B018
63+ os .add_dll_directory # ruff:ignore[useless-expression]
6464except AttributeError :
6565 # likely not on Py3.8 and Windows
6666 # https://github.com/inducer/pycuda/issues/213
@@ -72,7 +72,7 @@ def _add_cuda_libdir_to_dll_path():
7272
7373
7474try :
75- from pycuda ._driver import * # noqa
75+ from pycuda ._driver import * # ruff:ignore[undefined-local-with-import-star]
7676except ImportError as e :
7777 if "_v2" in str (e ):
7878 from warnings import warn
@@ -865,7 +865,7 @@ def matrix_to_array(matrix, order, allow_double_hack=False):
865865 return ary
866866
867867
868- def np_to_array (nparray , order , allowSurfaceBind = False ): # noqa: N803
868+ def np_to_array (nparray , order , allowSurfaceBind = False ): # ruff:ignore[invalid-argument-name]
869869 case = order in ["C" , "F" ]
870870 if not case :
871871 raise LogicError ("order must be either F or C" )
@@ -946,7 +946,7 @@ def np_to_array(nparray, order, allowSurfaceBind=False): # noqa: N803
946946 return cudaArray
947947
948948
949- def gpuarray_to_array (gpuarray , order , allowSurfaceBind = False ): # noqa: N803
949+ def gpuarray_to_array (gpuarray , order , allowSurfaceBind = False ): # ruff:ignore[invalid-argument-name]
950950 case = order in ["C" , "F" ]
951951 if not case :
952952 raise LogicError ("order must be either F or C" )
0 commit comments