This commit refactors the find_density_branch function in objects.py to accept an AutomationContext parameter instead of automate_run_data. It also updates the variable names within the function accordingly. The return type of the function is changed to Optional[Base]. Additionally, the code in transport_recolorized_commit is modified to call find_density_branch with automate_context instead of automate_context.automation_run_data. This change ensures that commits on the density branch cannot be recolored.
This commit adds a new function, find_density_branch(), which searches for a branch with the name 'density' in its lowercase form. If found, it prints the name and ID of the branch. If not found, it prints a message indicating that no such branch was found. This function is then used in transport_recolorized_commit() to check if the current automation run data corresponds to the 'density' branch before proceeding with commit recolorization.
The code changes add the import of `safe_store_file_result` from `src.utilities.reporting` and replace the call to `automate_context.store_file_result(file_name)` with a call to `safe_store_file_result(automate_context, file_name)` in the function `automate_function`. This change ensures that files are stored safely during automation.
- Updated matplotlib from version 3.8.0 to 3.9.1
- Updated reportlab from version 4.0.6 to 4.2.2
- Updated black from version 23.3.0 to 23.12.1
- Updated pytest from version 7.4.2 to 7.4.4
- Updated python-dotenv from version 1.0.0 to 1.0.1
- Added vulture dependency with version 2.11
The import statement for `extract_base_and_transform` has been moved from the `flatten` module to the correct location in the `utilities` module. This ensures that the code is organized properly and follows best practices.
- Update the command to generate the function input schema in `.github/workflows/main.yml`
- Add a new file `run.py` for executing the automate function
- Move the automate function execution code from `src/main.py` to `run.py`
These changes improve the organization and separation of concerns in the codebase.
- Refactor the code to improve readability and maintainability.
- Rename the `Utilities` module to `utilities`.
- Update import statements in affected files.
- Replace calls to `Utilities` methods with direct function calls from the `utilities` module.
- Remove unnecessary comments and blank lines.
- Renamed directories and files to follow a more organized structure
- Updated import statements in affected files to reflect the new directory structure
This change adds a print statement to display the server URL in the main.py file. This will help with debugging and understanding the current server configuration.
The code change updates the commit_id in the commit_details dictionary to use the version_id from the payload instead of using the project_id. This ensures that the correct version is used for committing changes.
- Update pydantic version to "^2.8.2"
- No longer require pydantic version "^2.4.2" in dev dependencies
This commit updates the dependencies in the pyproject.toml file. The pydantic version has been updated to "^2.8.2", and the previous requirement of "^2.4.2" for dev dependencies has been removed.
This commit updates the specklepy dependency in pyproject.toml from version 2.17.17 to version 2.19.5, ensuring compatibility with the latest features and improvements.