Skip to content

Commit 5539cc1

Browse files
committed
Fix QA & coverage
1 parent 8dfde4f commit 5539cc1

41 files changed

Lines changed: 2439 additions & 1509 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ kill:
8989
sonar: ## Run sonar-scanner for SonarQube analysis
9090
@mkdir -p $(SONAR_DIR) $(COVERAGE_DIR)
9191
@echo "Generating coverage report for SonarQube..."
92-
@python -m pytest --cov=claude_code_api --cov-report=xml --cov-report=term-missing -v tests/
92+
@python -m pytest --cov=claude_code_api --cov-report=xml:$(COVERAGE_DIR)/coverage.xml --cov-report=term-missing --junitxml=$(SONAR_DIR)/xunit-report.xml -v tests/
9393
@if command -v sonar-scanner >/dev/null 2>&1; then \
9494
if [ -f ".env.vault" ]; then \
9595
. ./.env.vault; \
@@ -131,7 +131,7 @@ sonar-cloud: ## Run sonar-scanner for SonarCloud (uses different token/env)
131131

132132
coverage-sonar: ## Generate coverage for SonarQube
133133
@mkdir -p $(COVERAGE_DIR)
134-
@python -m pytest --cov=claude_code_api --cov-report=xml --cov-report=term-missing -v tests/
134+
@python -m pytest --cov=claude_code_api --cov-report=xml:$(COVERAGE_DIR)/coverage.xml --cov-report=term-missing --junitxml=$(SONAR_DIR)/xunit-report.xml -v tests/
135135
@echo "Coverage XML generated: $(COVERAGE_DIR)/coverage.xml"
136136

137137
sbom: ## Generate SBOM with syft
@@ -220,4 +220,4 @@ help:
220220
@echo " make kill PORT=X - Kill process on specific port"
221221
@echo ""
222222
@echo "IMPORTANT: Both implementations are functionally equivalent!"
223-
@echo "Use Python or TypeScript - both provide the same OpenAI-compatible API."
223+
@echo "Use Python or TypeScript - both provide the same OpenAI-compatible API."

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ Override with `CLAUDE_CODE_API_MODELS_PATH` to point at a custom JSON file.
5858
- `claude-opus-4-5-20250929` - Claude Opus 4.5 (Most powerful)
5959
- `claude-sonnet-4-5-20250929` - Claude Sonnet 4.5 (Latest Sonnet)
6060
- `claude-haiku-4-5-20250929` - Claude Haiku 4.5 (Fast & cost-effective)
61-
- `claude-3-5-haiku-20241022` - Claude Haiku 3.5 (Fast & cost-effective)
6261

6362
## Quick Start
6463

claude_code_api/api/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,4 @@
55
from claude_code_api.api.projects import router as projects_router
66
from claude_code_api.api.sessions import router as sessions_router
77

8-
__all__ = [
9-
"chat_router",
10-
"models_router",
11-
"projects_router",
12-
"sessions_router"
13-
]
8+
__all__ = ["chat_router", "models_router", "projects_router", "sessions_router"]

0 commit comments

Comments
 (0)