Create the config manager module and initialize project #356
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The purpose of this PR is to add the first module of the new Installation Assistant: the Config Manager. Alongside this module, the
pyproject.tomlis included to initialize the project, as well as the logger that will be used.The
pyproject.tomldefines the project dependencies and the different Hatch environments that can be used during development. The idea is that, once completed, the project can be easily built with Hatch using the configuration defined in thepyproject.The Config Manager is responsible for retrieving information about each component and node defined in the
config.yaml.Tests 🧪
You can find different executions of the Config Manager in a comment in the related issue: #336 (comment)
A test module has also been created, which will be extended as new features are added to the project. For now, unit tests have been added for both the Config Manager and the logger.
You can run the tests with:
hatch run dev:test-covThis will install the required dependencies and print a summary of the test execution along with the test coverage percentage. In this case, the obtained coverage is 100%:
tests summary
Important
A test module already existed in the project. It has been renamed to
old_tests, and its references have been updated accordingly.