Skip to content

Commit ce74e63

Browse files
committed
restore pyproject
1 parent b1f6760 commit ce74e63

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

code_to_optimize/bubble_sort.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
def sorter(arr):
22
print("codeflash stdout: Sorting list")
3-
for i in range(len(arr)):
4-
for j in range(len(arr) - 1):
5-
if arr[j] > arr[j + 1]:
6-
temp = arr[j]
7-
arr[j] = arr[j + 1]
8-
arr[j + 1] = temp
3+
# Use Python's built-in sort for much faster performance
4+
arr.sort()
95
print(f"result: {arr}")
106
return arr

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@ formatter-cmds = [
240240
]
241241

242242

243-
[tool.pytest.ini_options]
244-
addopts = ["-n=auto", "-n", "1", "-n 1", "-n 1", "-n auto"]
245243
[build-system]
246244
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.2.0,<2.0.0"]
247245
build-backend = "poetry_dynamic_versioning.backend"

0 commit comments

Comments
 (0)