Skip to content

Commit 624f437

Browse files
github-actionsgithub-actions
authored andcommitted
Formatted with psf/black
1 parent 58a3688 commit 624f437

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

maths/absolute_max.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def absolute_max(array):
1212
return max(array, key=abs)
1313

1414

15-
if __name__ == '__main__':
15+
if __name__ == "__main__":
1616
from doctest import testmod
1717

1818
testmod()

maths/absolute_min.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def absolute_min(array):
1212
return min(array, key=abs)
1313

1414

15-
if __name__ == '__main__':
15+
if __name__ == "__main__":
1616
from doctest import testmod
1717

1818
testmod()

maths/allocation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ def allocation(number_of_bytes: int, partitions: int):
2020
if partitions <= 0:
2121
raise ValueError("partitions must be positive number")
2222
if partitions >= number_of_bytes:
23-
raise ValueError(
24-
"partitions can't be greater or equal to number_of_bytes"
25-
)
23+
raise ValueError("partitions can't be greater or equal to number_of_bytes")
2624
allocations = []
2725
bytes_per_partition = number_of_bytes // partitions
2826
for i in range(partitions):
2927
start_bytes = i * bytes_per_partition + 1
30-
end_bytes = number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
28+
end_bytes = (
29+
number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
30+
)
3131
allocations.append(f"{start_bytes}-{end_bytes}")
3232
return allocations
3333

0 commit comments

Comments
 (0)