codeflash-agent/packages/codeflash-api/tests
Kevin Turcios 3ee9c22c8e
fix: resolve all ruff lint errors across repo (#38)
* fix: resolve all ruff lint errors across repo

Auto-fixed 31 errors (unused imports, formatting, simplifications).
Manually fixed 14 remaining:
- EXE001: removed shebangs from non-executable bench scripts
- C417: replaced map(lambda) with generator expression
- C901/PLR0915: extracted _write_and_instrument_tests from generate_ai_tests
- C901/PLR0912: extracted _parse_toml_addopts and _ini_section_name from modify_addopts
- RUF001/RUF002: replaced ambiguous Unicode chars (en dash, multiplication sign)
- FBT002: made boolean params keyword-only in report functions
- E402: moved `import re` to top of file in security reports

* fix: resolve pre-existing mypy errors across packages

- _testgen.py: annotate `generated` as `str` to avoid no-any-return
- _test_runner.py: use str() for TimeoutExpired stdout/stderr (bytes|str),
  remove unused type: ignore on proc.kill()
- _candidate_eval.py: annotate `speedup` as `float` to avoid no-any-return
  from lazy-loaded performance_gain
2026-04-23 10:22:42 -05:00
..
conftest.py Add integration tests and fix AuthenticatedUser runtime import 2026-04-21 22:48:30 -05:00
test_app.py Scaffold codeflash-api package with app factory, config, and healthcheck 2026-04-21 21:28:59 -05:00
test_auth_deps.py Add auth layer: key hashing, rate limiting, usage tracking 2026-04-21 21:33:02 -05:00
test_config.py Scaffold codeflash-api package with app factory, config, and healthcheck 2026-04-21 21:28:59 -05:00
test_db.py Add DB layer: asyncpg pool, engine, row schemas, lifespan wiring 2026-04-21 21:55:19 -05:00
test_db_integration.py Raise codeflash-api test coverage from 81% to 92% 2026-04-22 23:39:54 -05:00
test_diff.py Raise codeflash-api test coverage from 81% to 92% 2026-04-22 23:39:54 -05:00
test_integration.py Strengthen testgen test assertions and remove duplicate integration tests 2026-04-22 23:24:36 -05:00
test_jit.py Add remaining endpoints: repair, refinement, adaptive, explain, review, ranking, jit, workflow, testgen, log_features 2026-04-21 22:36:31 -05:00
test_keys.py Add auth layer: key hashing, rate limiting, usage tracking 2026-04-21 21:33:02 -05:00
test_language_python.py Raise codeflash-api test coverage from 81% to 92% 2026-04-22 23:39:54 -05:00
test_llm.py Add LLM layer: client abstraction, cost calculation, retry policy 2026-04-21 21:55:09 -05:00
test_logging.py Add remaining endpoints: repair, refinement, adaptive, explain, review, ranking, jit, workflow, testgen, log_features 2026-04-21 22:36:31 -05:00
test_models.py Add auth layer: key hashing, rate limiting, usage tracking 2026-04-21 21:33:02 -05:00
test_optimize.py Raise codeflash-api test coverage from 81% to 92% 2026-04-22 23:39:54 -05:00
test_ranking.py Add remaining endpoints: repair, refinement, adaptive, explain, review, ranking, jit, workflow, testgen, log_features 2026-04-21 22:36:31 -05:00
test_refinement.py Add remaining endpoints: repair, refinement, adaptive, explain, review, ranking, jit, workflow, testgen, log_features 2026-04-21 22:36:31 -05:00
test_repair.py fix: resolve all ruff lint errors across repo (#38) 2026-04-23 10:22:42 -05:00
test_review.py Add remaining endpoints: repair, refinement, adaptive, explain, review, ranking, jit, workflow, testgen, log_features 2026-04-21 22:36:31 -05:00
test_testgen.py Raise codeflash-api test coverage from 81% to 92% 2026-04-22 23:39:54 -05:00
test_testgen_review.py Raise codeflash-api test coverage from 81% to 92% 2026-04-22 23:39:54 -05:00
test_workflow.py Add remaining endpoints: repair, refinement, adaptive, explain, review, ranking, jit, workflow, testgen, log_features 2026-04-21 22:36:31 -05:00