diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index fb4b28e..a0a6001 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -156,9 +156,7 @@ jobs: python3 -m ruff format --check bempp_cl python3 -m ruff format --check test python3 -m ruff format --check examples - name: Run flake8 checks - - run: python3 -m pydocstyle bempp_cl/api - name: Run pydocstyle checks + name: Run ruff checks build-and-test: name: Build Bempp and run tests diff --git a/bempp_cl/api/fmm/helpers.py b/bempp_cl/api/fmm/helpers.py index 576575b..6b79542 100644 --- a/bempp_cl/api/fmm/helpers.py +++ b/bempp_cl/api/fmm/helpers.py @@ -259,9 +259,9 @@ def numba_evaluate_local_interactions( local_source_points = _np.empty((3, npoints * nneighbors), dtype=dtype) for source_element_index in range(nneighbors): source_element = source_elements[source_element_index] - local_source_points[ - :, npoints * source_element_index : npoints * (1 + source_element_index) - ] = global_points[source_element, :, :] + local_source_points[:, npoints * source_element_index : npoints * (1 + source_element_index)] = ( + global_points[source_element, :, :] + ) local_target_points = global_points[target_element, :, :] interactions = kernel_function( local_target_points, @@ -316,9 +316,9 @@ def get_local_interaction_matrix_impl(grid_data, local_points, kernel_function, local_source_points = _np.empty((3, npoints * nneighbors), dtype=dtype) for source_element_index in range(nneighbors): source_element = source_elements[source_element_index] - local_source_points[ - :, npoints * source_element_index : npoints * (1 + source_element_index) - ] = global_points[source_element, :, :] + local_source_points[:, npoints * source_element_index : npoints * (1 + source_element_index)] = ( + global_points[source_element, :, :] + ) local_target_points = global_points[target_element, :, :] interactions = kernel_function( local_target_points,