Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.
69 of your 74 findings came from Repobility's proprietary detections. ✓ Repobility tags below mark them.

Scan timing: clone 1.24s · analysis 3.28s · 0.3 MB · GitHub API rate-limit (preflight)

modern-python/modern-di

https://github.com/modern-python/modern-di · scanned 2026-06-05 12:52 UTC (5 days, 9 hours ago) · 10 languages

131 raw signals (73 security + 58 graph) 85th percentile · Python · small (2-20K LoC) System graph score 98 (lower by 16)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 5 days, 9 hours ago · v2 · 64 actionable findings from 2 signal sources. 38 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Score breakdown â 2026-05-18-v5
Component Sub-score Weight Contribution
structure_score 75.0 0.15 11.25
security_score 100.0 0.25 25.00
testing_score 87.0 0.20 17.40
documentation_score 62.0 0.15 9.30
practices_score 72.0 0.15 10.80
code_quality 79.0 0.10 7.90
Overall 1.00 81.7
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Corpus Intelligence Cross-corpus context (cohort percentile, top patterns, fix plan) is shown only on repositories you own. Sign up and connect your repo to view it.
Scan summary Quality grade A- (82/100). Dimensions: security 100, maintainability 75. 73 findings (11 security). 3,085 lines analyzed.

Showing 53 of 64 actionable findings. 102 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

high Security checks quality Quality conf 1.00 ✓ Repobility 25 occurrences `self.resolve_provider` used but never assigned in __init__
Method `resolve` of class `Container` reads `self.resolve_provider`, but no assignment to it exists in __init__ (and no class-level fallback). This raises AttributeError the first time the method runs against an instance.
7 files, 25 locations
modern_di/providers/factory.py:62, 65, 66, 95, 106, 118, 132, 134, +3 more (11 hits)
modern_di/providers/alias.py:27, 36, 39 (4 hits)
modern_di/container.py:98, 171, 177 (3 hits)
modern_di/providers/context_provider.py:29, 32, 38 (3 hits)
modern_di/registries/cache_registry.py:27, 35 (2 hits)
modern_di/exceptions.py:95
modern_di/registries/providers_registry.py:53
medium Security checks cicd CI/CD security conf 0.90 ✓ Repobility 6 occurrences GitHub Action is tag-pinned rather than SHA-pinned
Action `extractions/setup-just` pinned to mutable ref `@v2` uses a mutable tag or branch. Pin external actions to a reviewed full commit SHA when the workflow is security-sensitive.
2 files, 6 locations
.github/workflows/ci.yml:18, 19, 39, 40 (4 hits)
.github/workflows/publish.yml:13, 14 (2 hits)
CI/CD securitySupply chainGitHub Actions
low Security checks cicd CI/CD security conf 0.90 ✓ Repobility 3 occurrences GitHub Action is tag-pinned rather than SHA-pinned
Action `actions/checkout` pinned to mutable ref `@v4` uses a mutable tag or branch. Pin external actions to a reviewed full commit SHA when the workflow is security-sensitive.
2 files, 3 locations
.github/workflows/ci.yml:17, 38 (2 hits)
.github/workflows/publish.yml:12
CI/CD securitySupply chainGitHub Actions
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_dict_lookup_int_key
Test function `test_dict_lookup_int_key` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_override_fastpath.py:129
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_dict_lookup_uuid_key
Test function `test_dict_lookup_uuid_key` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_override_fastpath.py:135
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_dict_setdefault_int_key
Test function `test_dict_setdefault_int_key` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_override_fastpath.py:141
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_dict_setdefault_uuid_key
Test function `test_dict_setdefault_uuid_key` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_override_fastpath.py:148
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_find_parent_scope_baseline
Test function `test_find_parent_scope_baseline` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_scope_map.py:94
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_find_parent_scope_optimized
Test function `test_find_parent_scope_optimized` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_scope_map.py:86
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_find_same_scope_baseline
Test function `test_find_same_scope_baseline` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_scope_map.py:71
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_find_same_scope_optimized
Test function `test_find_same_scope_optimized` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_scope_map.py:66
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_full_resolve_cross_scope_baseline
Test function `test_full_resolve_cross_scope_baseline` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_scope_map.py:118
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_full_resolve_cross_scope_optimized
Test function `test_full_resolve_cross_scope_optimized` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_scope_map.py:112
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_kwargs_loop_split
Test function `test_kwargs_loop_split` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_kwargs_split.py:164
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_kwargs_loop_unified
Test function `test_kwargs_loop_unified` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_kwargs_split.py:178
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_no_overrides_baseline
Test function `test_no_overrides_baseline` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_override_fastpath.py:63
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_no_overrides_optimized
Test function `test_no_overrides_optimized` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_override_fastpath.py:58
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_override_other_baseline
Test function `test_override_other_baseline` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_override_fastpath.py:84
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_override_other_optimized
Test function `test_override_other_optimized` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_override_fastpath.py:78
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_override_self_baseline
Test function `test_override_self_baseline` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_override_fastpath.py:106
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_override_self_optimized
Test function `test_override_self_optimized` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_override_fastpath.py:100
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_singleton_baseline
Test function `test_singleton_baseline` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_kwargs_split.py:130
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_singleton_optimized
Test function `test_singleton_optimized` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_kwargs_split.py:96
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_uncached_baseline
Test function `test_uncached_baseline` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_kwargs_split.py:73
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_uncached_optimized
Test function `test_uncached_optimized` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
benchmarks/bench_kwargs_split.py:67
low Security checks quality Error handling conf 0.55 ✓ Repobility 2 occurrences Broad exception handler needs review
This handler catches Exception/BaseException. It is actionable when it swallows errors without logging, re-raising, or returning a structured error. Handlers that intentionally convert exceptions into typed error results should not be treated as high risk.
lines 53, 63
modern_di/registries/cache_registry.py:53, 63 (2 hits)
Error handlingquality
medium Security checks software dependencies conf 0.90 ✓ Repobility 2 occurrences requirements.txt: `mkdocs` has no version pin
Unpinned pip requirement means every fresh install may resolve a different version. Newer releases can introduce malicious code (typosquats, account compromises). Reproducible installs need exact pins.
lines 1, 2
docs/requirements.txt:1, 2 (2 hits)
medium System graph security Coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). Either auth lives in custom code, in a separate service, or is missing.
auth
low System graph software Dead code candidate conf 1.00 File has no detected symbols: modern_di/errors.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph quality Integrity conf 1.00 2 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: modern_di/registries/cache_registry.py:close_async, modern_di/registries/cache_registry.py:close_async This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they…
2 occurrences
repo-level (2 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `test_container_prevent_copy` in tests/test_container.py:18
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph software Dead code conf 1.00 Possibly dead Python function: test_dict_lookup_int_key
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_override_fastpath.py:129
low System graph software Dead code conf 1.00 Possibly dead Python function: test_dict_lookup_uuid_key
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_override_fastpath.py:135
low System graph software Dead code conf 1.00 Possibly dead Python function: test_dict_setdefault_int_key
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_override_fastpath.py:141
low System graph software Dead code conf 1.00 Possibly dead Python function: test_dict_setdefault_uuid_key
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_override_fastpath.py:148
low System graph software Dead code conf 1.00 Possibly dead Python function: test_find_parent_scope_baseline
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_scope_map.py:94
low System graph software Dead code conf 1.00 Possibly dead Python function: test_find_parent_scope_optimized
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_scope_map.py:86
low System graph software Dead code conf 1.00 Possibly dead Python function: test_find_same_scope_baseline
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_scope_map.py:71
low System graph software Dead code conf 1.00 Possibly dead Python function: test_find_same_scope_optimized
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_scope_map.py:66
low System graph software Dead code conf 1.00 Possibly dead Python function: test_full_resolve_cross_scope_baseline
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_scope_map.py:118
low System graph software Dead code conf 1.00 Possibly dead Python function: test_full_resolve_cross_scope_optimized
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_scope_map.py:112
low System graph software Dead code conf 1.00 Possibly dead Python function: test_kwargs_loop_split
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_kwargs_split.py:164
low System graph software Dead code conf 1.00 Possibly dead Python function: test_kwargs_loop_unified
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_kwargs_split.py:178
low System graph software Dead code conf 1.00 Possibly dead Python function: test_no_overrides_baseline
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_override_fastpath.py:63
low System graph software Dead code conf 1.00 Possibly dead Python function: test_no_overrides_optimized
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_override_fastpath.py:58
low System graph software Dead code conf 1.00 Possibly dead Python function: test_override_other_baseline
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_override_fastpath.py:84
low System graph software Dead code conf 1.00 Possibly dead Python function: test_override_other_optimized
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_override_fastpath.py:78
low System graph software Dead code conf 1.00 Possibly dead Python function: test_override_self_baseline
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_override_fastpath.py:106
low System graph software Dead code conf 1.00 Possibly dead Python function: test_override_self_optimized
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_override_fastpath.py:100
low System graph software Dead code conf 1.00 Possibly dead Python function: test_singleton_baseline
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_kwargs_split.py:130
low System graph software Dead code conf 1.00 Possibly dead Python function: test_singleton_optimized
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_kwargs_split.py:96
low System graph software Dead code conf 1.00 Possibly dead Python function: test_uncached_baseline
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_kwargs_split.py:73
low System graph software Dead code conf 1.00 Possibly dead Python function: test_uncached_optimized
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/bench_kwargs_split.py:67
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/00d6d4e8-765e-414b-b211-4a66299ebf76/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/00d6d4e8-765e-414b-b211-4a66299ebf76/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.