Skip to content

Add cached app/config accessors in bionetgen.main#96

Merged
jrfaeder merged 2 commits into
RuleWorld:mainfrom
wshlavacek:main-app-accessors
May 12, 2026
Merged

Add cached app/config accessors in bionetgen.main#96
jrfaeder merged 2 commits into
RuleWorld:mainfrom
wshlavacek:main-app-accessors

Conversation

@wshlavacek
Copy link
Copy Markdown
Contributor

Summary

  • Add cached app and config accessors in bionetgen.main.
  • Rename the exported accessor to get_default_app and add focused tests for caching and default bngpath lookup.
  • Keep this PR limited to the accessor lane and leave deferred app setup changes for later work.

Testing

  • uv run python -m pytest -q tests/test_main_accessors.py tests/test_bionetgen.py -k 'bionetgen_help or test_main_accessors'
  • uvx black --check bionetgen/main.py tests/test_main_accessors.py

@jrfaeder jrfaeder merged commit d88b139 into RuleWorld:main May 12, 2026
17 checks passed
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.

2 participants