chore: remove CodeFlash integration (#11670)

Remove CodeFlash dependency, CI workflow, and configuration as it is no longer used.
This commit is contained in:
Gabriel Luiz Freitas Almeida
2026-03-02 17:33:41 -03:00
committed by GitHub
parent d46f3a620c
commit a5c8bf2079
4 changed files with 0 additions and 53 deletions

View File

@ -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

View File

@ -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",

View File

@ -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"

4
uv.lock generated
View File

@ -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" },