chore: Add make check-config
command
#875
Open
+316
−212
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.
Adds new make command to
check-config
Sample output:
AI Description
This PR introduces a new
check-config
command to the Makefile, which runs a Python script to check the configuration and secrets files for missing keys. The script reads the configuration and secrets files, compares them to their respective templates, and prints warnings for any missing keys.The PR also updates the
poetry.lock file to use a different version of the
onnxruntimepackage, and updates the
pyproject.toml` file to match.The following changes are made:
check-config
command is added to the Makefile, which runs a Python script to check the configuration and secrets files for missing keys.src/backend/scripts/config
directory, which reads the configuration and secrets files, compares them to their respective templates, and prints warnings for any missing keys.poetry.lock file is updated to use a different version of the
onnxruntime` package.pyproject.toml
file is updated to match the new version ofonnxruntime
.src/backend/cli
directory is renamed tosrc/backend/scripts/cli
, and thesrc/backend/scripts/config
directory is added.src/backend/tests/unit/cli/test_main.py
file is updated to import from the newsrc/backend/scripts/cli/main.py
file.