Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

WIP: Entity model (Sourcery refactored) #406

Closed
wants to merge 1 commit into from

Conversation

sourcery-ai[bot]
Copy link
Contributor

@sourcery-ai sourcery-ai bot commented Jul 1, 2021

Pull Request #405 refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

NOTE: As code is pushed to the original Pull Request, Sourcery will
re-run and update (force-push) this Pull Request with new refactorings as
necessary. If Sourcery finds no refactorings at any point, this Pull Request
will be closed automatically.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the jaro/entity_model branch, then run:

git fetch origin sourcery/jaro/entity_model
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai bot requested a review from jarosevcik July 1, 2021 12:25
Comment on lines -6 to +14
if data["kind"] == "component":
if data["spec"]["type"] == "service":
self._build_service(data)
elif data["spec"]["spec"] == "library":
self._build_library(data)
else:
self._build_base_component(data)
else:
if data["kind"] != "component":
return NotImplemented

if data["spec"]["type"] == "service":
self._build_service(data)
elif data["spec"]["spec"] == "library":
self._build_library(data)
else:
self._build_base_component(data)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function EntityBuilder.entity refactored with the following changes:

@sourcery-ai sourcery-ai bot closed this Jul 6, 2021
@sourcery-ai sourcery-ai bot deleted the sourcery/jaro/entity_model branch July 6, 2021 12:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants