diff --git a/.github/workflows/codeflash.yml b/.github/workflows/codeflash.yml index 366b6a3..efb0045 100644 --- a/.github/workflows/codeflash.yml +++ b/.github/workflows/codeflash.yml @@ -30,4 +30,4 @@ jobs: id: optimize_code run: | poetry env use python - poetry run codeflash --test-framework unittest --test-root code_to_optimize/tests/unittest + poetry run codeflash diff --git a/bubble_sort_2.py b/bubble_sort_2.py new file mode 100644 index 0000000..d4ee3a5 --- /dev/null +++ b/bubble_sort_2.py @@ -0,0 +1,3 @@ +def sorter2(arr): + arr.sort() + return arr diff --git a/bubble_sort_3.py b/bubble_sort_3.py new file mode 100644 index 0000000..ba98eb1 --- /dev/null +++ b/bubble_sort_3.py @@ -0,0 +1,8 @@ +def sorter2(arr): + for i in range(len(arr)): + for j in range(len(arr) - 1): + if arr[j] > arr[j + 1]: + temp = arr[j] + arr[j] = arr[j + 1] + arr[j + 1] = temp + return arr diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..540361b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,24 @@ +[tool.poetry] +name = "my-best-repo" +version = "0.1.0" +description = "" +authors = ["afik.cohen "] +readme = "README.md" + +[tool.poetry.dependencies] +python = "^3.10" + + +[tool.poetry.dependencies.codeflash] +url = "https://www.dropbox.com/scl/fi/cc9wktjof4fx6888l2kxe/codeflash-0.0.0-py3-none-any.whl?rlkey=d5jpchx11vlj3l959faw8uqgh&dl=1" + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" + + +[tool.codeflash] +root = "." +test-root = "tests" +test-framework = "pytest" +ignore-paths = [] diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29