From b7bc5c3538f2dff5df797200dd232a2b162d305f Mon Sep 17 00:00:00 2001
From: Sotiris Niarchos <sot.niarchos@gmail.com>
Date: Mon, 30 Mar 2020 23:07:53 +0300
Subject: [PATCH] linting

---
 test/test_arrays_in_structs.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/test/test_arrays_in_structs.py b/test/test_arrays_in_structs.py
index 2fdf70ea..e51740b2 100644
--- a/test/test_arrays_in_structs.py
+++ b/test/test_arrays_in_structs.py
@@ -29,6 +29,7 @@ import pyopencl.tools as cl_tools
 from pyopencl.tools import (  # noqa
         pytest_generate_tests_for_pyopencl as pytest_generate_tests)
 
+
 def test_struct_with_array_fields(ctx_factory):
     #
     # typedef struct {
@@ -43,12 +44,15 @@ def test_struct_with_array_fields(ctx_factory):
     uint_arr_2 = cl_tools.get_or_register_dtype('uint_arr_2', uint_arr_2)
     uint_arr_3_4 = np.dtype((cltypes.uint, (3, 4)))
     uint_arr_3_4 = cl_tools.get_or_register_dtype('uint_arr_3_4', uint_arr_3_4)
-    my_struct = np.dtype([('x', uint_arr_2),('y', cltypes.float),('z', uint_arr_3_4)])
+    my_struct = np.dtype([
+        ('x', uint_arr_2),
+        ('y', cltypes.float),
+        ('z', uint_arr_3_4)
+    ])
     my_struct, _ = cl_tools.match_dtype_to_c_struct(device, 'my_struct', my_struct)
 
-if __name__ == "__main__":
 
-    import pyopencl
+if __name__ == "__main__":
 
     import sys
     if len(sys.argv) > 1:
-- 
GitLab