31 Commits

Author SHA1 Message Date
Jonathon Broughton 7517682456 Remove unnecessary blank lines and handle 404 error when storing file result
- Remove multiple unnecessary blank lines in `main.py`
- Handle the 404 error when attempting to store a file result in `reporting.py`
2024-08-04 17:47:14 +01:00
Jonathon Broughton 46b6c0d68c Print commit details with server URL in a formatted manner
- Added print statements to display the beginning and end of execution
- Modified the print statement to display the server URL in a formatted manner
2024-08-04 17:36:15 +01:00
Jonathon Broughton 62d5e67bab Refactor find_density_branch function to use AutomationContext and return Optional[Base]
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
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.
0.1.12
2024-08-04 17:19:12 +01:00
Jonathon Broughton dee3ff2b63 Add find_density_branch() function to locate the 'density' branch
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
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.
0.1.11
2024-08-04 16:22:23 +01:00
Jonathon Broughton 9f1aa11551 Add safe file storage to automate_function
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.
2024-08-04 15:56:59 +01:00
Jonathon Broughton b538e6d8d3 Update dependencies in pyproject.toml
- 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
2024-08-04 15:52:54 +01:00
Jonathon Broughton 81365c0e5a Move import statement to correct module
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.
2024-08-04 15:41:15 +01:00
Jonathon Broughton 1e8dc4dfe5 Refactor function input schema generation and execution
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
- 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.
0.2.0
2024-08-04 15:36:48 +01:00
Jonathon Broughton 03f6673cc0 feat: Improve code readability and maintainability
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
- 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.
0.1.9
2024-08-04 15:28:32 +01:00
Jonathon Broughton d09e5c7133 Refactor code structure and file organization
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
- Renamed directories and files to follow a more organized structure
- Updated import statements in affected files to reflect the new directory structure
0.1.8
2024-08-04 13:08:37 +01:00
Jonathon Broughton 6eba1257a5 Add print statement to display server URL
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
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.
0.1.7
2024-08-03 22:19:14 +01:00
Jonathon Broughton b45e657e6a Update commit_id to use the version_id from the payload
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
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.
0.16
2024-08-03 21:24:11 +01:00
Jonathon Broughton ca22b093f3 Merge remote-tracking branch 'origin/main'
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
0.15
2024-08-03 20:05:02 +01:00
Jonathon Broughton 9298d8a14e Print automation run data in automate_function
- Add print statement to display automation run data
- Helps with debugging and understanding the context of the function
2024-08-03 20:04:36 +01:00
dependabot[bot] 8126ee5776 Bump actions/checkout from 3.4.0 to 4.1.7 (#1)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 4.1.7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.4.0...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-03 19:42:16 +01:00
dependabot[bot] e14ad4e801 Bump specklesystems/speckle-automate-github-composite-action (#2)
Bumps [specklesystems/speckle-automate-github-composite-action](https://github.com/specklesystems/speckle-automate-github-composite-action) from 0.7.4 to 0.8.1.
- [Release notes](https://github.com/specklesystems/speckle-automate-github-composite-action/releases)
- [Commits](https://github.com/specklesystems/speckle-automate-github-composite-action/compare/0.7.4...0.8.1)

---
updated-dependencies:
- dependency-name: specklesystems/speckle-automate-github-composite-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-03 19:42:00 +01:00
Jonathon Broughton 3baff49f80 Create dependabot.yml 2024-08-03 19:40:12 +01:00
Jonathon Broughton f08d75b3a6 urgh
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
0.1.4
2024-08-03 19:36:33 +01:00
Jonathon Broughton c9cf67f876 Add specklepy version print statement
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
The code changes include adding an import statement for the "specklepy" module and printing its version.
0.1.3
2024-08-03 19:31:51 +01:00
Jonathon Broughton d85ad61507 Update pyproject.toml dependencies
- 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.
2024-08-03 19:23:37 +01:00
Jonathon Broughton 32df80fdce Housekeeping 2024-08-03 19:19:57 +01:00
Jonathon Broughton c95410f34a Update specklepy dependency to version 2.19.5
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
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.
0.1.2
2024-08-03 17:08:04 +01:00
Jonathon Broughton 77aee28a6f SDK Update
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
0.1.1
2024-01-09 10:23:20 +00:00
Jonathon Broughton b85134800e Bump actions/setup-python from 4 to 5 2024-01-09 10:04:29 +00:00
Jonathon Broughton 105e6ca0f0 Create LICENSE 2023-11-14 02:51:51 +00:00
Jonathon Broughton eeb9d4e640 Docker caching enabled 2023-11-12 19:35:14 +00:00
Jonathon Broughton 75fb5a7479 belt and braces
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
0.1.0
2023-11-12 11:11:47 +00:00
Jonathon Broughton f16993332d Imported from dirstat wip function 2023-11-12 11:11:03 +00:00
Jonathon Broughton dac83cb058 Update README.md 2023-11-12 10:11:21 +00:00
Jonathon Broughton 9af35d9e8e Adds values for CPU and Memory 2023-11-10 15:33:13 +00:00
Jonathon Broughton 4add4e29ff Initial commit 2023-11-10 09:48:45 +00:00