diff --git a/.github/workflows/codeflash.yml b/.github/workflows/codeflash.yml deleted file mode 100644 index a72576703e0b..000000000000 --- a/.github/workflows/codeflash.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Codeflash - -on: - pull_request: - paths: - - "src/backend/base/langflow/**" - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - optimize: - name: Optimize new Python code in this PR - if: ${{ github.actor != 'codeflash-ai[bot]' }} - runs-on: ubuntu-latest - env: - CODEFLASH_API_KEY: ${{ secrets.CODEFLASH_API_KEY }} - CODEFLASH_PR_NUMBER: ${{ github.event.number }} - steps: - - uses: actions/checkout@v6 - with: - fetch-depth: 0 - - name: "Setup Environment" - uses: astral-sh/setup-uv@v6 - with: - enable-cache: true - cache-dependency-glob: "uv.lock" - python-version: ${{ matrix.python-version }} - prune-cache: false - - run: uv sync - - name: Run Codeflash Optimizer - working-directory: ./src/backend/base - continue-on-error: true - run: uv run codeflash - diff --git a/pyproject.toml b/pyproject.toml index 573b0e749bcb..46b739e86c1a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,7 +57,6 @@ dev = [ "pytest-github-actions-annotate-failures>=0.2.0", "blockbuster>=1.5.20,<1.6", "types-aiofiles>=24.1.0.20240626", - "codeflash>=0.8.4", "hypothesis>=6.123.17", "locust~=2.40.5", "pytest-rerunfailures>=15.0", diff --git a/src/backend/base/pyproject.toml b/src/backend/base/pyproject.toml index 263ae38fc749..752a5f779a6d 100644 --- a/src/backend/base/pyproject.toml +++ b/src/backend/base/pyproject.toml @@ -133,7 +133,6 @@ dev = [ "devtools>=0.12.2", "pytest-flakefinder>=1.1.0", "types-markdown>=3.7.0.20240822", - "codeflash>=0.8.4", ] @@ -160,16 +159,6 @@ namespace_packages = true mypy_path = "langflow" ignore_missing_imports = true -[tool.codeflash] -# All paths are relative to this pyproject.toml's directory. -module-root = "langflow" -tests-root = "../tests/unit" -test-framework = "pytest" -ignore-paths = ["langflow/components/"] -formatter-cmds = ["ruff check --exit-zero --fix $file", "ruff format $file"] -#disable plugins that might interfere with runtime measurement -pytest-cmd = "pytest -p no:profiling -p no:sugar -p no:xdist -p no:cov -p no:split" - [build-system] requires = ["hatchling"] build-backend = "hatchling.build" diff --git a/uv.lock b/uv.lock index 1f7145ea421a..ebee8efe50f8 100644 --- a/uv.lock +++ b/uv.lock @@ -5782,7 +5782,6 @@ postgresql = [ dev = [ { name = "asgi-lifespan" }, { name = "blockbuster" }, - { name = "codeflash" }, { name = "dictdiffer" }, { name = "elevenlabs", version = "1.58.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.12.*'" }, { name = "elevenlabs", version = "1.59.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version != '3.12.*'" }, @@ -5858,7 +5857,6 @@ requires-dist = [ dev = [ { name = "asgi-lifespan", specifier = ">=2.1.0" }, { name = "blockbuster", specifier = ">=1.5.20,<1.6" }, - { name = "codeflash", specifier = ">=0.8.4" }, { name = "dictdiffer", specifier = ">=0.9.0" }, { name = "elevenlabs", marker = "python_full_version != '3.12.*'", specifier = ">=1.52.0" }, { name = "elevenlabs", marker = "python_full_version == '3.12.*'", specifier = "==1.58.1" }, @@ -6557,7 +6555,6 @@ zep = [ [package.dev-dependencies] dev = [ { name = "asgi-lifespan" }, - { name = "codeflash" }, { name = "devtools" }, { name = "dictdiffer" }, { name = "httpx", extra = ["http2"] }, @@ -6900,7 +6897,6 @@ provides-extras = ["audio", "postgresql", "local", "couchbase", "cassandra", "cl [package.metadata.requires-dev] dev = [ { name = "asgi-lifespan", specifier = ">=2.1.0" }, - { name = "codeflash", specifier = ">=0.8.4" }, { name = "devtools", specifier = ">=0.12.2" }, { name = "dictdiffer", specifier = ">=0.9.0" }, { name = "httpx", extras = ["http2"], specifier = ">=0.27" },