Commit Graph

48 Commits

Author SHA1 Message Date
Jonathon Broughton f289891374 Refactor parameter actions and sanitisation logic
- Enhanced removal action to handle both dicts and Base objects.
- Improved error handling for dynamic attribute removal in Base objects.
- Updated anonymization action to support Revit-style parameters.
- Streamlined function inputs processing in the main automate function.
- Added new method for processing Revit parameters specifically.
2025-03-25 00:11:28 +00:00
Jonathon Broughton fe80f95a19 Update Ruff configuration options
- Enabled formatting with Ruff
- Kept existing settings for running on save and server usage
2025-03-25 00:11:17 +00:00
Jonathon Broughton 5295f8165d Add email anonymization action
- Introduced `AnonymizationAction` class for email handling.
- Added `EmailMatcher` to identify and anonymize emails.
- Updated `ParameterProcessor` to support value checking.
- Modified main function to create an anonymization action.
- Removed placeholder for the anonymization action.
2025-03-24 23:56:09 +00:00
Jonathon Broughton 42565839f9 Update success message with more details
- Enhanced the success message to include sanitisation mode.
- Added info on whether strict mode is active.
2025-03-24 23:16:45 +00:00
Jonathon Broughton f3bce1b753 Fix strict mode matching logic
Updated the strict mode in the matcher to check if the parameter name starts with the match value instead of being an exact match. This improves flexibility while still maintaining case insensitivity for non-strict matches.
2025-03-24 23:16:36 +00:00
Jonathon Broughton a676205cfb Add title for strict mode in inputs
- Added a title for the strict mode field
- Clarified case sensitivity in the description
2025-03-24 23:01:33 +00:00
Jonathon Broughton 6322f38720 Refactor parameter actions and matching strategies
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
- Introduced a new `ParameterMatcher` class for flexible matching.
- Added `PrefixMatcher` and `PatternMatcher` subclasses for specific match logic.
- Updated `ParameterAction` to include a check method.
- Replaced old removal action with a more generic `RemovalAction`.
- Enhanced input schema to clarify sanitization modes and parameters.
- Improved documentation throughout the codebase.
0.1.0
2025-03-24 22:56:45 +00:00
Jonathon Broughton 430e0115da Update Python SDK version to 3.13
- Changed project JDK from Python 3.12 to 3.13
- Updated related configuration in project files
2025-03-24 22:56:07 +00:00
Jonathon Broughton 5bd172d5b3 Add editable package installation to workflows
- Added step to install the package in editable mode.
- Updated Dockerfile to include editable package installation.
2025-03-24 18:51:38 +00:00
Jonathon Broughton 975e69dc86 Update installation steps and dependencies
- Removed uv installation from workflows and Dockerfile.
- Consolidated tooling installations into a single step.
- Changed dependency installation to use requirements.txt instead of pyproject.toml.
- Set PYTHONPATH in the Dockerfile for module accessibility.
2025-03-24 18:49:33 +00:00
Jonathon Broughton e4d0a42cd9 Auto stash before merge of "main" and "origin/main" 2025-03-24 18:39:26 +00:00
Jonathon Broughton 152032b366 Update Dockerfile 2025-03-24 18:33:00 +00:00
Jonathon Broughton 035c794593 Update main.yml 2025-03-24 18:32:39 +00:00
Jonathon Broughton e990e1d90a Update main.yml 2025-03-24 18:30:47 +00:00
Jonathon Broughton 19c3a08a76 Update Dockerfile 2025-03-24 18:30:27 +00:00
Jonathon Broughton addd6c9c9f Update Dockerfile 2025-03-24 18:30:17 +00:00
Jonathon Broughton 0e0f80b7a3 Update Dockerfile 2025-03-24 18:28:45 +00:00
Jonathon Broughton 3eba7ff10c Update main.yml 2025-03-24 18:27:48 +00:00
Jonathon Broughton d77b74b333 Update dependencies in requirements file
Removed a local package reference and kept the rest intact.
2025-03-24 17:49:23 +00:00
Jonathon Broughton 1452f38324 Update dependency installation process
- Switched to using requirements.txt for installing dependencies.
- Removed the use of a specific package manager for syncing.
- Cleaned up the requirements file by removing autogenerated comments and unnecessary entries.
2025-03-24 17:45:19 +00:00
Jonathon Broughton dacdbaebda Update dependency installation commands
- Changed `uv pip sync` to `uv sync` in workflows
- Updated Dockerfile to reflect the same command change
2025-03-24 17:38:17 +00:00
Jonathon Broughton 7023f41a74 Update main.yml (#18)
* Update main.yml

* Update Dockerfile
2025-03-24 17:32:17 +00:00
Jonathon Broughton 1fa18fb657 Update dependency installation commands
- Changed `uv pip install` to `uv pip sync` in workflow and Dockerfile.
- Added new package with dependencies in lock file.
- Removed old package definition from lock file.
2025-03-24 17:29:23 +00:00
Jonathon Broughton 218b889302 Update dependency installation methods
- Changed pip upgrade and install commands to use 'uv'
- Updated workflow for installing dependencies
- Modified Dockerfile to reflect new installation approach
2025-03-24 17:25:22 +00:00
Jonathon Broughton d78bd1f8fc Update dependency installation commands
- Changed pip install commands to upgrade pip first
- Simplified installation of the package in workflows and Dockerfile
2025-03-24 16:37:03 +00:00
Jonathon Broughton 774c412efc Update Python version to 3.13
- Changed Python version in workflow config
- Updated local Python version file
- Switched Docker base image to 3.13
2025-03-24 16:30:12 +00:00
Jonathon Broughton 5ea62fdc8d Update package installation commands
- Changed pip install command to include `--only-binary=:all:`
- Updated workflow and Dockerfile for consistency
2025-03-24 16:26:16 +00:00
Jonathon Broughton 03bc9449c4 Refactor imports for better structure
- Updated import paths to improve clarity.
- Removed unused imports from the initialisation file.
- Organised imports in various modules for consistency.
2025-03-24 16:16:38 +00:00
Jonathon Broughton 3db077d150 Refactor imports for clarity and organisation
- Removed unnecessary imports from the main module.
- Consolidated import statements for `FunctionInputs` and `automate_function`.
- Updated test file to reflect new import paths.
2025-03-24 13:38:56 +00:00
Jonathon Broughton e753bdb4e8 Update project structure and naming conventions
- Changed project name format from hyphen to underscore.
- Updated package finding configuration in setup tools.
- Renamed several files and adjusted imports accordingly.
- Removed an empty helper file that was no longer needed.
- Added a new `__init__.py` for better module organisation.
2025-03-24 13:27:48 +00:00
Jonathon Broughton 731c735fce Rename project and reorganise structure
- Changed project name to "data-shield"
- Moved all source files into a new "data-shield" directory
- Updated import paths accordingly
2025-03-24 12:54:48 +00:00
Jonathon Broughton 690e6f7d13 Update package installation commands
- Changed pip install command to use --system flag
- Updated workflow and Dockerfile for consistency
2025-03-24 12:31:43 +00:00
Jonathon Broughton 6186ee139f Update Python version and dependency management
- Changed Python version to 3.12.4 in workflows
- Switched to using 'uv' for dependency installation
- Updated Dockerfile to reflect new base image and install method
- Added package configuration in pyproject.toml
2025-03-24 12:28:15 +00:00
Jonathon Broughton af51a4fc0c Refactor parameter removal action
- Simplified `PrefixRemovalAction` by removing inheritance.
- Consolidated parameter removal logic into a single method.
- Enhanced tracking of affected parameters for reporting.
- Updated processing to prioritise v3 structure while keeping v2 support as a placeholder.
- Cleaned up comments and improved code readability.
2025-03-24 09:42:22 +00:00
Jonathon Broughton 31ff21a178 Update dependencies installation process
- Switched from Poetry to pip for managing dependencies.
- Updated Python version in the Dockerfile to 3.13.
- Simplified installation steps in CI workflow and Dockerfile.
2025-03-24 09:42:05 +00:00
Jonathon Broughton 99f43e6b3e Add project configuration files and clean up code
- Added .gitignore to exclude IDE-specific files.
- Created inspection profiles for code quality checks.
- Set up project metadata in various XML files.
- Removed unused dependencies from the lock file.
- Refactored main.py to streamline function calls and imports.
2025-03-23 17:05:51 +00:00
renovate[bot] 33c42767f1 Update dependency pytest to v8 (#12)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 21:42:16 +00:00
renovate[bot] f7bc38ea17 Update dependency black to v24 (#11)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 21:40:42 +00:00
renovate[bot] 87203b15f7 Update dependency pydantic-settings to v2.7.1 (#8)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 21:40:26 +00:00
renovate[bot] 29b5c7d4c2 Update python Docker tag to v3.13 (#10)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 21:40:12 +00:00
renovate[bot] 9b7fc92af0 Update dependency mypy to v1.14.1 (#7)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 21:39:40 +00:00
renovate[bot] d5aa0fb3e2 Update dependency ruff to ^0.9.0 (#9)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 21:39:09 +00:00
dependabot[bot] abaa59eb4d Bump specklesystems/speckle-automate-github-composite-action (#3)
Bumps [specklesystems/speckle-automate-github-composite-action](https://github.com/specklesystems/speckle-automate-github-composite-action) from 0.8.1 to 0.9.0.
- [Release notes](https://github.com/specklesystems/speckle-automate-github-composite-action/releases)
- [Commits](https://github.com/specklesystems/speckle-automate-github-composite-action/compare/0.8.1...0.9.0)

---
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>
2025-01-24 21:37:43 +00:00
dependabot[bot] 859da33519 Bump actions/checkout from 4.1.7 to 4.2.2 (#2)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.2.
- [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/v4.1.7...v4.2.2)

---
updated-dependencies:
- dependency-name: actions/checkout
  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>
2025-01-24 21:37:30 +00:00
renovate[bot] 849cef0960 Update dependency specklepy to v2.21.2 (#4)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 21:37:17 +00:00
renovate[bot] d1971c92d7 Update actions/checkout action to v4.2.2 (#5)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 21:37:00 +00:00
renovate[bot] f64f0ca606 Add renovate.json (#1)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 21:25:21 +00:00
Jonathon Broughton 188148c69f Initial commit 2025-01-24 21:24:28 +00:00