Skip to content

Commit 7cd425a

Browse files
committed
More formatting
1 parent b629f36 commit 7cd425a

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

pyfaasm/pyfaasm/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# flake8: noqa
12
# Note - we need to avoid unnecessarily importing numpy here
23
from . import core
34
from . import config

pyfaasm/pyfaasm/matrix_data.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ def _read_submatrix_from_file(row_idx, col_idx):
3030

3131

3232
def do_subdivide_matrix(conf, mat, write_func):
33-
# Step through rows and columns of original matrix, appending submatrix bytes
34-
# to the overall byte stream
33+
# Step through rows and columns of original matrix, appending submatrix
34+
# bytes to the overall byte stream
3535
sm_per_row = conf.get_submatrices_per_row(conf.n_splits)
3636
sm_size = conf.get_submatrix_size(conf.n_splits)
3737

3838
for row_idx in range(0, sm_per_row):
3939
for col_idx in range(0, sm_per_row):
40-
# Work out the position of the top left and bottom right corner of the submatrix
40+
# Work out the position of the top left and bottom right corner of
41+
# the submatrix
4142
row_start = row_idx * sm_size
4243
col_start = col_idx * sm_size
4344

pyfaasm/test/test_matrices.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,5 +187,6 @@ def test_distributed_multiplication(self, split_level):
187187
self.conf.matrix_size, self.conf.matrix_size
188188
)
189189

190-
# Note that the floating point errors can creep up so we have a relatively high tolerance here
190+
# Note that the floating point errors can creep up so we have a
191+
# relatively high tolerance here
191192
np.testing.assert_array_almost_equal_nulp(actual, expected, nulp=20)

setup.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Unfortunately, flake8 configuration must live in here, and black configuration
2+
# https://black.readthedocs.io/en/stable/compatible_configs.html#flake8
3+
[flake8]
4+
max-line-length = 88
5+
extend-ignore = E203, W503
6+

0 commit comments

Comments
 (0)