Skip to content

feat: upgrade to ahbicht v2.0.0, remove inject dependency#270

Merged
hf-kklein merged 4 commits intomainfrom
feature/upgrade-ahbicht-v2
Apr 12, 2026
Merged

feat: upgrade to ahbicht v2.0.0, remove inject dependency#270
hf-kklein merged 4 commits intomainfrom
feature/upgrade-ahbicht-v2

Conversation

@hf-kklein
Copy link
Copy Markdown
Contributor

Summary

  • Remove all python-inject usage from expression_view.py
  • Remove _setup_weird_ahbicht_dependency_injection() function entirely
  • Update is_valid_expression call to use new format params (v2.0.0 API)
  • Bump ahbicht dep from >=1.0.0,<2 to >=2.0.0

What was removed

  • import inject
  • EvaluatableDataProvider, TokenLogicProvider, SingletonTokenLogicProvider imports
  • create_content_evaluation_result_based_evaluators import
  • _content_evaluation_result ContextVar
  • _get_evaluatable_data() function
  • _setup_weird_ahbicht_dependency_injection() function

What changed

is_valid_expression(expression, _content_evaluation_result.set)
is_valid_expression(expression, EdifactFormat.UTILMD, EdifactFormatVersion.FV2504)

See ahbicht v2.0.0 migration guide.

🤖 Generated with Claude Code

hf-kklein and others added 4 commits April 12, 2026 17:53
- Remove inject, EvaluatableDataProvider, TokenLogicProvider,
  SingletonTokenLogicProvider, create_content_evaluation_result_based_evaluators
  imports from expression_view.py
- Remove _setup_weird_ahbicht_dependency_injection() function entirely
- Update is_valid_expression call to use new format params instead of
  setter callback
- Bump ahbicht dep to >=2.0.0

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove unused AhbContext import
- Fix unbound is_valid variable in except branch
- Pass actual format/version from row data instead of hardcoding UTILMD

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hf-kklein hf-kklein merged commit b59b606 into main Apr 12, 2026
21 checks passed
@hf-kklein hf-kklein deleted the feature/upgrade-ahbicht-v2 branch April 12, 2026 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant