fix: resolve linting issues in token efficiency implementation
Some checks failed
CI / test (pull_request) Has been cancelled

- Fix ambiguous variable names (l → layer)
- Remove unused imports and variables
- Organize import statements

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
agentson
2026-02-04 18:35:55 +09:00
parent 4f61d5af8e
commit 61f5aaf4a3
9 changed files with 12 additions and 19 deletions

View File

@@ -191,7 +191,7 @@ class ContextSelector:
selected_layers = [layer for layer, score in scores.items() if score >= min_score]
# Sort by score (descending)
selected_layers.sort(key=lambda l: scores[l], reverse=True)
selected_layers.sort(key=lambda layer: scores[layer], reverse=True)
total_score = sum(scores[layer] for layer in selected_layers)