Code Quality
Weight 20%avg_cc=2.57, max_cc=54, duplication=89.95%, dead_code=7
| Primary Language | Python |
|---|---|
| Primary Framework | Unknown |
| Deployable Types | API |
| Technology Stack | Python, CI/CD |
| Default Branch | main |
| Documentation Priority | P1 |
| Last Repository Scan | 11/15/2026, 5:11:48 AM |
| Source Repository | Open on GitHub |
077448c7a4ae8708f29e1434177bf9f3c667119blangfuse/langfuse-python077448c7a4ae8708f29e1434177bf9f3c667119bgraph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
repo_root(["langfuse/langfuse-python (32 components)"]):::atlasRoot
subgraph sg_dir_0_tests["tests (22)"]
direction TB
dir_0_tests["tests (22)"]:::atlasCategory
sub_0_0_unit["unit (17)"]:::atlasWorkflow
dir_0_tests --> sub_0_0_unit
sub_0_1_live_provider["live_provider (4)"]:::atlasWorkflow
dir_0_tests --> sub_0_1_live_provider
sub_0_2__module_root_["(module root) (1)"]:::atlasWorkflow
dir_0_tests --> sub_0_2__module_root_
end
repo_root --> dir_0_tests
subgraph sg_dir_1_langfuse["langfuse (10)"]
direction TB
dir_1_langfuse["langfuse (10)"]:::atlasCategory
sub_1_0_api["api (6)"]:::atlasWorkflow
dir_1_langfuse --> sub_1_0_api
sub_1_1__client["_client (2)"]:::atlasWorkflow
dir_1_langfuse --> sub_1_1__client
sub_1_2__task_manager["_task_manager (1)"]:::atlasWorkflow
dir_1_langfuse --> sub_1_2__task_manager
sub_1_more["+1 more submodules (1)"]:::atlasMore
dir_1_langfuse --> sub_1_more
end
repo_root --> dir_1_langfuse
sub_0_0_unit -.->|"6 deps"| sub_1_1__client
sub_0_0_unit -.->|"4 deps"| sub_1_2__task_manager
sub_1_1__client -.->|"2 deps"| sub_1_2__task_manager
langfuse/_client/resource_manager.py): SERVICE (deps: MediaManager)langfuse/_client/span_exporter.py): SERVICE (deps: MediaManager)langfuse/_task_manager/media_manager.py): SERVICElangfuse/_utils/prompt_cache.py): SERVICElangfuse/api/commons/types/score.py): DATA_ACCESS_LAYER (deps: UniversalBaseModel)langfuse/api/commons/types/score.py): DATA_ACCESS_LAYER (deps: UniversalBaseModel)langfuse/api/commons/types/score.py): DATA_ACCESS_LAYER (deps: UniversalBaseModel)langfuse/api/commons/types/score.py): DATA_ACCESS_LAYER (deps: UniversalBaseModel)langfuse/api/commons/types/score.py): DATA_ACCESS_LAYER (deps: UniversalBaseModel)langfuse/api/core/pydantic_utilities.py): DATA_ACCESS_LAYERtests/conftest.py): SERVICE (deps: LangfuseResourceManager)tests/live_provider/test_langchain.py): DATA_ACCESS_LAYERtests/live_provider/test_langchain.py): DATA_ACCESS_LAYERtests/live_provider/test_openai.py): DATA_ACCESS_LAYERtests/live_provider/test_openai.py): DATA_ACCESS_LAYERtests/unit/test_additional_headers_simple.py): SERVICE (deps: LangfuseResourceManager)tests/unit/test_json.py): DATA_ACCESS_LAYERtests/unit/test_langchain.py): DATA_ACCESS_LAYERtests/unit/test_mask_otel_spans.py): SERVICE (deps: MediaManager)tests/unit/test_mask_otel_spans.py): SERVICE (deps: MediaManager)tests/unit/test_openai.py): DATA_ACCESS_LAYERtests/unit/test_openai_prompt_extraction.py): DATA_ACCESS_LAYERtests/unit/test_openai_prompt_extraction.py): DATA_ACCESS_LAYERtests/unit/test_openai_prompt_extraction.py): DATA_ACCESS_LAYERtests/unit/test_otel.py): SERVICE (deps: LangfuseResourceManager)tests/unit/test_resource_manager.py): SERVICE (deps: LangfuseResourceManager, MediaManager)tests/unit/test_resource_manager.py): SERVICE (deps: LangfuseResourceManager, MediaManager)tests/unit/test_score_consumer.py): SERVICE (deps: LangfuseResourceManager)tests/unit/test_serializer.py): DATA_ACCESS_LAYERtests/unit/test_serializer.py): DATA_ACCESS_LAYERtests/unit/test_serializer.py): DATA_ACCESS_LAYERtests/unit/test_span_processor.py): SERVICE (deps: InMemorySpanExporter)F (45.60/100)| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | F | 36.00 | 0.20 | avg_cc=2.57, max_cc=54, duplication=89.95%, dead_code=7 |
| Dependency Health | A | 100.00 | 0.15 | dependencies=123, outdated=0, vulnerable=0, has_lockfile=True |
| Maintainability | F | 37.00 | 0.15 | avg_cognitive=2.05, max_cognitive=130, fitness_violations=3, oversized_files=23 |
| Pipeline Health | F | 49.00 | 0.15 | workflows=9, operational_antipatterns=12, parallel_branches=True |
| Security | F | 0.00 | 0.20 | vulnerabilities=0, secrets=0, pipeline_security_findings=5 |
| Test Coverage | C | 70.00 | 0.15 | coverage=unavailable, ci_test_job=True, test_files_detected=True |
ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository duplication_pct (89.95) exceeds policy threshold (15.0).ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository max_cognitive_complexity (130.0) exceeds policy threshold (25.0).ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository max_cyclomatic_complexity (54.0) exceeds policy threshold (20.0).autoevals 0.0.130 (PyPI, pyproject.toml)autoevals 0.0.130 (PyPI, uv.lock)backoff 1.10.0 (PyPI, pyproject.toml)backoff 2.2.1 (PyPI, uv.lock)gevent 24.2.1 (PyPI, pyproject.toml)gevent 26.9.0 (PyPI, uv.lock)httpx 0.15.4 (PyPI, pyproject.toml)httpx 0.28.1 (PyPI, uv.lock)langchain 1 (PyPI, pyproject.toml)langchain 1.2.13 (PyPI, uv.lock)langchain-core 1 (PyPI, pyproject.toml)langchain-core 1.2.22 (PyPI, uv.lock)langchain-openai 1 (PyPI, pyproject.toml)langchain-openai 1.1.12 (PyPI, uv.lock)langgraph 1 (PyPI, pyproject.toml)langgraph 1.1.3 (PyPI, uv.lock)mypy 1.0.0 (PyPI, pyproject.toml)mypy 1.19.1 (PyPI, uv.lock)openai 1.0.0 (PyPI, pyproject.toml)openai 2.29.0 (PyPI, uv.lock)opentelemetry-api 1.45.0 (PyPI, pyproject.toml)opentelemetry-api 1.45.1 (PyPI, uv.lock)opentelemetry-exporter-otlp-proto-http 1.45.0 (PyPI, pyproject.toml)opentelemetry-exporter-otlp-proto-http 1.45.0 (PyPI, uv.lock)opentelemetry-instrumentation-threading 0.59b0 (PyPI, pyproject.toml)opentelemetry-instrumentation-threading 0.66b1 (PyPI, uv.lock)opentelemetry-sdk 1.45.0 (PyPI, pyproject.toml)opentelemetry-sdk 1.45.1 (PyPI, uv.lock)packaging 23.2 (PyPI, pyproject.toml)packaging 26.0 (PyPI, uv.lock)flowchart LR
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
subgraph code_modules["Code Modules"]
mod_c9582069_ed42_4614_97b3_39b09904a77c["c9582069-ed42-4614-97b3-39b09904a77c"]:::atlasCategory
end
subgraph ci_jobs["CI/CD Jobs"]
job_ci_yml_all_tests_passed["ci.yml#all-tests-passed"]:::atlasJob
job_ci_yml_e2e_tests["ci.yml#e2e-tests"]:::atlasJob
job_ci_yml_linting["ci.yml#linting"]:::atlasJob
job_ci_yml_type_checking["ci.yml#type-checking"]:::atlasJob
job_ci_yml_unit_tests["ci.yml#unit-tests"]:::atlasJob
job_cla_gate_yml_evaluate["cla-gate.yml#evaluate"]:::atlasJob
job_claude_review_maintainer_prs_yml_comment["claude-review-maintainer-prs.yml#comment"]:::atlasJob
job_codeql_yml_analyze["codeql.yml#analyze"]:::atlasJob
job_dependabot_merge_yml_dependabot["dependabot-merge.yml#dependabot"]:::atlasJob
job_package_availability_check_yml_build["package-availability-check.yml#build"]:::atlasJob
job_release_yml_release_python_sdk["release.yml#release-python-sdk"]:::atlasJob
job_validate_pr_title_yml_validate_pr_title["validate-pr-title.yml#validate-pr-title"]:::atlasJob
job_zizmor_yml_zizmor["zizmor.yml#zizmor"]:::atlasJob
end
subgraph runtime_envs["Runtime Environments"]
env_protected_branches["protected branches"]:::atlasTarget
end
job_release_yml_release_python_sdk -->|DEPLOYS_TO| env_protected_branches
mod_c9582069_ed42_4614_97b3_39b09904a77c -->|BUILT_BY| job_ci_yml_all_tests_passed
mod_c9582069_ed42_4614_97b3_39b09904a77c -->|BUILT_BY| job_ci_yml_e2e_tests
mod_c9582069_ed42_4614_97b3_39b09904a77c -->|BUILT_BY| job_ci_yml_linting
mod_c9582069_ed42_4614_97b3_39b09904a77c -->|BUILT_BY| job_ci_yml_type_checking
mod_c9582069_ed42_4614_97b3_39b09904a77c -->|BUILT_BY| job_ci_yml_unit_tests
mod_c9582069_ed42_4614_97b3_39b09904a77c -->|BUILT_BY| job_cla_gate_yml_evaluate
mod_c9582069_ed42_4614_97b3_39b09904a77c -->|BUILT_BY| job_claude_review_maintainer_prs_yml_comment
mod_c9582069_ed42_4614_97b3_39b09904a77c -->|BUILT_BY| job_codeql_yml_analyze
mod_c9582069_ed42_4614_97b3_39b09904a77c -->|BUILT_BY| job_dependabot_merge_yml_dependabot
mod_c9582069_ed42_4614_97b3_39b09904a77c -->|BUILT_BY| job_package_availability_check_yml_build
mod_c9582069_ed42_4614_97b3_39b09904a77c -->|BUILT_BY| job_validate_pr_title_yml_validate_pr_title
mod_c9582069_ed42_4614_97b3_39b09904a77c -->|BUILT_BY| job_zizmor_yml_zizmor
mod_c9582069_ed42_4614_97b3_39b09904a77c -->|DEPLOYED_BY| job_release_yml_release_python_sdk
release.yml#release-python-sdk (ci_job) —[DEPLOYS_TO]—> protected branches (environment)c9582069-ed42-4614-97b3-39b09904a77c (code_module) —[BUILT_BY]—> ci.yml#all-tests-passed (ci_job)c9582069-ed42-4614-97b3-39b09904a77c (code_module) —[BUILT_BY]—> ci.yml#e2e-tests (ci_job)c9582069-ed42-4614-97b3-39b09904a77c (code_module) —[BUILT_BY]—> ci.yml#linting (ci_job)c9582069-ed42-4614-97b3-39b09904a77c (code_module) —[BUILT_BY]—> ci.yml#type-checking (ci_job)c9582069-ed42-4614-97b3-39b09904a77c (code_module) —[BUILT_BY]—> ci.yml#unit-tests (ci_job)c9582069-ed42-4614-97b3-39b09904a77c (code_module) —[BUILT_BY]—> cla-gate.yml#evaluate (ci_job)c9582069-ed42-4614-97b3-39b09904a77c (code_module) —[BUILT_BY]—> claude-review-maintainer-prs.yml#comment (ci_job)c9582069-ed42-4614-97b3-39b09904a77c (code_module) —[BUILT_BY]—> codeql.yml#analyze (ci_job)c9582069-ed42-4614-97b3-39b09904a77c (code_module) —[BUILT_BY]—> dependabot-merge.yml#dependabot (ci_job)c9582069-ed42-4614-97b3-39b09904a77c (code_module) —[BUILT_BY]—> package-availability-check.yml#build (ci_job)c9582069-ed42-4614-97b3-39b09904a77c (code_module) —[BUILT_BY]—> validate-pr-title.yml#validate-pr-title (ci_job)c9582069-ed42-4614-97b3-39b09904a77c (code_module) —[BUILT_BY]—> zizmor.yml#zizmor (ci_job)c9582069-ed42-4614-97b3-39b09904a77c (code_module) —[DEPLOYED_BY]—> release.yml#release-python-sdk (ci_job)graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
pipeline_root(["langfuse/langfuse-python (9 workflows)"]):::atlasRoot
subgraph sg_grp_0_CI___Verification["CI & Verification (3 workflows · 3 jobs)"]
direction TB
subgraph sg_wf_1_CLA_gate["CLA gate (1 jobs)"]
direction TB
wf_1_CLA_gate(["Trigger: CLA gate"]):::atlasWorkflow
job_1_evaluate["evaluate"]:::atlasJob
wf_1_CLA_gate --> job_1_evaluate
end
pipeline_root --> wf_1_CLA_gate
subgraph sg_wf_2_Claude_Review_on_Maintainer_PRs["Claude Review on Maintainer PRs (1 jobs)"]
direction TB
wf_2_Claude_Review_on_Maintainer_PRs(["Trigger: Claude Review on Maintainer PRs"]):::atlasWorkflow
job_2_comment["comment"]:::atlasJob
wf_2_Claude_Review_on_Maintainer_PRs --> job_2_comment
end
pipeline_root --> wf_2_Claude_Review_on_Maintainer_PRs
subgraph sg_wf_7_Validate_PR_Title["Validate PR Title (1 jobs)"]
direction TB
wf_7_Validate_PR_Title(["Trigger: Validate PR Title"]):::atlasWorkflow
job_7_validate_pr_title["validate-pr-title"]:::atlasJob
wf_7_Validate_PR_Title --> job_7_validate_pr_title
end
pipeline_root --> wf_7_Validate_PR_Title
end
subgraph sg_grp_1_Scheduled___Manual["Scheduled & Manual (3 workflows · 7 jobs)"]
direction TB
subgraph sg_wf_0_ci_yml["ci.yml (5 jobs)"]
direction TB
wf_0_ci_yml(["Trigger: ci.yml"]):::atlasWorkflow
job_0_linting["linting"]:::atlasJob
job_0_type_checking["type-checking"]:::atlasJob
job_0_unit_tests["unit-tests"]:::atlasJob
wf_0_ci_yml --> job_0_linting
wf_0_ci_yml --> job_0_type_checking
wf_0_ci_yml --> job_0_unit_tests
end
pipeline_root --> wf_0_ci_yml
subgraph sg_wf_5_Check_availability_of_packages["Check availability of packages (1 jobs)"]
direction TB
wf_5_Check_availability_of_packages(["Trigger: Check availability of packages"]):::atlasWorkflow
job_5_build["build"]:::atlasJob
wf_5_Check_availability_of_packages --> job_5_build
end
pipeline_root --> wf_5_Check_availability_of_packages
subgraph sg_wf_8_Check_GitHub_Actions["Check GitHub Actions (1 jobs)"]
direction TB
wf_8_Check_GitHub_Actions(["Trigger: Check GitHub Actions"]):::atlasWorkflow
job_8_zizmor["zizmor"]:::atlasJob
wf_8_Check_GitHub_Actions --> job_8_zizmor
end
pipeline_root --> wf_8_Check_GitHub_Actions
end
subgraph sg_grp_2_Security___Governance["Security & Governance (2 workflows · 2 jobs)"]
direction TB
subgraph sg_wf_3_CodeQL_Advanced["CodeQL Advanced (1 jobs)"]
direction TB
wf_3_CodeQL_Advanced(["Trigger: CodeQL Advanced"]):::atlasWorkflow
job_3_analyze["analyze"]:::atlasJob
wf_3_CodeQL_Advanced --> job_3_analyze
end
pipeline_root --> wf_3_CodeQL_Advanced
subgraph sg_wf_4_Dependabot_auto_merge["Dependabot auto-merge (1 jobs)"]
direction TB
wf_4_Dependabot_auto_merge(["Trigger: Dependabot auto-merge"]):::atlasWorkflow
job_4_dependabot["dependabot"]:::atlasJob
wf_4_Dependabot_auto_merge --> job_4_dependabot
end
pipeline_root --> wf_4_Dependabot_auto_merge
end
subgraph sg_grp_3_Release___Deploy["Release & Deploy (1 workflows · 1 jobs)"]
direction TB
subgraph sg_wf_6_Release_Python_SDK["Release Python SDK (1 jobs)"]
direction TB
wf_6_Release_Python_SDK(["Trigger: Release Python SDK"]):::atlasWorkflow
job_6_release_python_sdk["release-python-sdk"]:::atlasJob
wf_6_Release_Python_SDK --> job_6_release_python_sdk
end
pipeline_root --> wf_6_Release_Python_SDK
endavg_cc=2.57, max_cc=54, duplication=89.95%, dead_code=7
vulnerabilities=0, secrets=0, pipeline_security_findings=5
avg_cognitive=2.05, max_cognitive=130, fitness_violations=3, oversized_files=23
coverage=unavailable, ci_test_job=True, test_files_detected=True
dependencies=123, outdated=0, vulnerable=0, has_lockfile=True
workflows=9, operational_antipatterns=12, parallel_branches=True
_set_processed_span_attributeslangfuse/_client/span.py:639_find_and_process_medialangfuse/_task_manager/media_manager.py:99_upload_media_synclangfuse/_task_manager/media_manager.py:375_create_prompt_contextlangfuse/_utils/__init__.py:13get_alias_to_field_mappinglangfuse/api/core/serialization.py:229get_field_to_alias_mappinglangfuse/api/core/serialization.py:234create_evaluator_from_autoevalslangfuse/experiment.py:1070ATRUSS-ARCH-005COMPLEXITY_THRESHOLDlangfuse/openai.py:1Repository duplication_pct (89.95) exceeds policy threshold (15.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDlangfuse/openai.py:1Repository max_cognitive_complexity (130.0) exceeds policy threshold (25.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDlangfuse/openai.py:1Repository max_cyclomatic_complexity (54.0) exceeds policy threshold (20.0).
No known OSV vulnerabilities detected across 123 parsed dependencies.
No hardcoded secret patterns detected.
Single-package repository or no monorepo workspace manifests.