Skip to content

Update Files For new release (Sourcery refactored) - #109

Merged
dreinon merged 1 commit into
jl--add-new-releasefrom
sourcery/jl--add-new-release
Dec 29, 2021
Merged

dreinon merged 1 commit into
jl--add-new-releasefrom
sourcery/jl--add-new-release

Conversation

@sourcery-ai

@sourcery-ai sourcery-ai Bot commented Dec 29, 2021

Copy link
Copy Markdown
Contributor

Pull Request #108 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 jl--add-new-release branch, then run:

git fetch origin sourcery/jl--add-new-release
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai
sourcery-ai Bot requested a review from J0 December 29, 2021 12:53
Comment on lines -18 to +21
if payload.type == "INSERT" or payload.type == "UPDATE":
if payload.type in ["INSERT", "UPDATE"]:
records["new"] = payload.record
convert_change_data(payload.columns, payload.record)
if payload.type == "UPDATE" or payload.type == "DELETE":
if payload.type in ["UPDATE", "DELETE"]:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Function SupabaseRealtimeClient.get_payload_records refactored with the following changes:

@sourcery-ai

sourcery-ai Bot commented Dec 29, 2021

Copy link
Copy Markdown
Contributor Author

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 1.73%.

Quality metrics Before After Change
Complexity 1.39 ⭐ 0.75 ⭐ -0.64 👍
Method Length 38.67 ⭐ 37.67 ⭐ -1.00 👍
Working memory 5.57 ⭐ 5.25 ⭐ -0.32 👍
Quality 85.59% ⭐ 87.32% ⭐ 1.73% 👍
Other metrics Before After Change
Lines 56 56 0
Changed files Quality Before Quality After Quality Change
supabase/lib/realtime_client.py 85.59% ⭐ 87.32% ⭐ 1.73% 👍

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!

@dreinon
dreinon merged commit 117ddda into jl--add-new-release Dec 29, 2021
@leynier
leynier deleted the sourcery/jl--add-new-release branch January 17, 2022 13:46
zeekay pushed a commit to Dream-AI-4444/supabase-py that referenced this pull request Sep 10, 2026
…add-new-release

Update Files For new release (Sourcery refactored)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant