Skip to content

Commit

Permalink
feature/update to mex-model 3.4.0 (#12)
Browse files Browse the repository at this point in the history
### Changes

- updated to the latest mex library versions
  • Loading branch information
cutoffthetop authored Dec 18, 2024
1 parent caf810b commit 2cc6fec
Show file tree
Hide file tree
Showing 5 changed files with 216 additions and 214 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_language_version:
python: python3.11
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3
rev: v0.8.3
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -25,7 +25,7 @@ repos:
- id: fix-byte-order-marker
name: byte-order
- repo: https://github.com/pdm-project/pdm
rev: 2.20.1
rev: 2.22.0
hooks:
- id: pdm-lock-check
name: pdm
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changes

- updated to the latest mex library versions

### Deprecated

### Removed
Expand All @@ -25,4 +27,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- setup artificial data generation

### Security
## [0.1.0] - 2024-11-21

### Added

- initial project setup
4 changes: 2 additions & 2 deletions mex/artificial/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def extracted_items(factories: Faker, identities: IdentityMap) -> ExtractedItems
"""Create artificial extracted items."""
restore_identities(identities) # restore state of memory identity provider
return ExtractedItemsRequest(
items=[m for c in EXTRACTED_MODEL_CLASSES for m in factories.extracted_data(c)]
items=[m for c in EXTRACTED_MODEL_CLASSES for m in factories.extracted_items(c)]
)


Expand All @@ -29,7 +29,7 @@ def merged_items(extracted_items: ExtractedItemsRequest) -> MergedItemsResponse:
"""Transform artificial extracted items into merged items."""
return MergedItemsResponse(
items=[
create_merged_item(m.stableTargetId, [m], None)
create_merged_item(m.stableTargetId, [m], None, validate_cardinality=True)
for m in extracted_items.items
],
total=len(extracted_items.items),
Expand Down
Loading

0 comments on commit 2cc6fec

Please sign in to comment.