codeflash 0.3.1__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {codeflash-0.3.1 → codeflash-0.3.2}/PKG-INFO +1 -1
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/api/aiservice.py +4 -1
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/version.py +2 -2
- {codeflash-0.3.1 → codeflash-0.3.2}/pyproject.toml +1 -1
- {codeflash-0.3.1 → codeflash-0.3.2}/README.md +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/LICENSE +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/analytics/__init__.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/analytics/posthog.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/api/__init__.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/api/cfapi.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/cli_cmds/__init__.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/cli_cmds/cli.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/cli_cmds/cmd_init.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/cli_cmds/logging_config.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/cli_cmds/workflows/codeflash-optimize.yaml +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/code_utils/__init__.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/code_utils/code_extractor.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/code_utils/code_replacer.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/code_utils/code_utils.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/code_utils/config_consts.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/code_utils/config_parser.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/code_utils/env_utils.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/code_utils/git_utils.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/code_utils/instrument_existing_tests.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/code_utils/linter.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/code_utils/sqlalchemy_utils.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/code_utils/time_utils.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/discovery/__init__.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/discovery/discover_unit_tests.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/discovery/functions_to_optimize.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/github/PrComment.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/github/__init__.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/main.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/optimization/__init__.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/optimization/function_context.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/result/__init__.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/result/create_pr.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/result/explanation.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/tracing/__init__.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/tracing/replay_test.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/tracing/tracer.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/update_license_version.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/verification/__init__.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/verification/comparator.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/verification/equivalence.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/verification/parse_test_output.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/verification/test_results.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/verification/test_runner.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/verification/verification_utils.py +0 -0
- {codeflash-0.3.1 → codeflash-0.3.2}/codeflash/verification/verifier.py +0 -0
|
@@ -68,7 +68,10 @@ def optimize_python_code(
|
|
|
68
68
|
optimizations = response.json()["optimizations"]
|
|
69
69
|
return [(opt["source_code"], opt["explanation"]) for opt in optimizations]
|
|
70
70
|
else:
|
|
71
|
-
|
|
71
|
+
try:
|
|
72
|
+
error = response.json()["error"]
|
|
73
|
+
except Exception as e:
|
|
74
|
+
error = response.text
|
|
72
75
|
logging.error(f"Error generating optimized candidates: {response.status_code} - {error}")
|
|
73
76
|
ph(
|
|
74
77
|
"cli-optimize-error-response",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# These version placeholders will be replaced by poetry-dynamic-versioning during `poetry build`.
|
|
2
|
-
__version__ = "0.3.
|
|
3
|
-
__version_tuple__ = (0, 3,
|
|
2
|
+
__version__ = "0.3.2"
|
|
3
|
+
__version_tuple__ = (0, 3, 2)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "codeflash"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.2" # Determined by poetry-dynamic-versioning during `poetry build`
|
|
4
4
|
description = "A Code Performance Optimization Library"
|
|
5
5
|
authors = ["CodeFlash Inc. <contact@codeflash.ai>"]
|
|
6
6
|
homepage = "https://codeflash.ai"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|