Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Conversation

@sourcery-ai
Copy link
Contributor

@sourcery-ai sourcery-ai bot commented Jan 17, 2022

Pull Request #70 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 feat/add-notion-to-enum-of-providers branch, then run:

git fetch origin sourcery/feat/add-notion-to-enum-of-providers
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai bot requested a review from leynier January 17, 2022 06:04
if "access_token" in response.json():
return Session
return User
return Session if "access_token" in response.json() else User
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 determine_session_or_user_model_from_response refactored with the following changes:

@sourcery-ai
Copy link
Contributor Author

sourcery-ai bot commented Jan 17, 2022

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 0.37%.

Quality metrics Before After Change
Complexity 0.14 ⭐ 0.13 ⭐ -0.01 👍
Method Length 53.17 ⭐ 53.00 ⭐ -0.17 👍
Working memory 5.11 ⭐ 5.16 ⭐ 0.05 👎
Quality 80.34% 79.97% -0.37% 👎
Other metrics Before After Change
Lines 131 129 -2
Changed files Quality Before Quality After Quality Change
gotrue/types.py 80.34% ⭐ 79.97% ⭐ -0.37% 👎

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!

@codecov
Copy link

codecov bot commented Jan 17, 2022

Codecov Report

Merging #71 (7c35a2b) into feat/add-notion-to-enum-of-providers (cd1faf3) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@                           Coverage Diff                            @@
##           feat/add-notion-to-enum-of-providers      #71      +/-   ##
========================================================================
- Coverage                                 84.22%   84.19%   -0.04%     
========================================================================
  Files                                        14       14              
  Lines                                      1052     1050       -2     
========================================================================
- Hits                                        886      884       -2     
  Misses                                      166      166              
Impacted Files Coverage Δ
gotrue/types.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd1faf3...7c35a2b. Read the comment docs.

@leynier leynier merged commit 0907ad0 into feat/add-notion-to-enum-of-providers Jan 17, 2022
leynier added a commit that referenced this pull request Jan 17, 2022
* feat: add notion to enum of providers

* 'Refactored by Sourcery' (#71)

Co-authored-by: Sourcery AI <>

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
@leynier leynier deleted the sourcery/feat/add-notion-to-enum-of-providers branch January 17, 2022 13:47
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.

2 participants