Skip to content

Completed Milestone 1: Core Polish & Documentation#16

Open
theluke-dot-dev wants to merge 4 commits intomasterfrom
milestone-1-core-polish-docs
Open

Completed Milestone 1: Core Polish & Documentation#16
theluke-dot-dev wants to merge 4 commits intomasterfrom
milestone-1-core-polish-docs

Conversation

@theluke-dot-dev
Copy link
Copy Markdown
Owner

This milestone includes:

  • Comprehensive docstrings for all core modules.
  • Resolution of the TODO in LagomResolver for robust dependency checking.
  • Implementation of SimpleCommandHandlerResolver for non-DI use cases.
  • Enhanced README with detailed conceptual overview and usage examples for both resolvers.
  • Setup of test coverage reporting with coverage.py and pytest-cov.
  • Creation of CONTRIBUTING.md with developer guidance.

This milestone includes:
- Comprehensive docstrings for all core modules.
- Resolution of the TODO in LagomResolver for robust dependency checking.
- Implementation of SimpleCommandHandlerResolver for non-DI use cases.
- Enhanced README with detailed conceptual overview and usage examples for both resolvers.
- Setup of test coverage reporting with coverage.py and pytest-cov.
- Creation of CONTRIBUTING.md with developer guidance.
… enhanced the tests.

- I modified `LagomResolver` to use `container.partial`, ensuring that `shared_deps` and `container_updater` functionalities are preserved.
- I ensured that `UnresolvableType` errors from `lagom.partial` are correctly caught and wrapped in `UnresolvedDependencyError`.
- I added specific tests for `shared_deps` to verify singleton behavior through the resolver.
- I added specific tests for `container_updater` to verify dynamic dependency provision and error handling for missing dependencies through the updater context.
Reformatted the following files using black:
- src/vistral/command_bus/tests/test_simple_resolver.py
- src/vistral/contrib/lagom.py
- src/vistral/contrib/tests/test_lagom.py
I ran isort on the following files to correct import formatting:
- src/vistral/command_bus/tests/test_simple_resolver.py
- src/vistral/contrib/exceptions.py
- src/vistral/contrib/tests/test_lagom.py
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