Skip to content

chore: Fix Issue of Missing requirements - #225

Merged
yezz123 merged 4 commits into
mainfrom
issue/Deps
Apr 12, 2022
Merged

yezz123 merged 4 commits into
mainfrom
issue/Deps

Conversation

@yezz123

@yezz123 yezz123 commented Apr 12, 2022

Copy link
Copy Markdown
Owner

Lately some of developers report that some missing requirements, that's why i merge all requirements in once just by using pip install authx

@yezz123 yezz123 added documentation Improvements or additions to documentation enhancement New feature or request dependencies Pull requests that update a dependency file labels Apr 12, 2022
@yezz123 yezz123 self-assigned this Apr 12, 2022
@sourcery-ai

sourcery-ai Bot commented Apr 12, 2022

Copy link
Copy Markdown
Contributor

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 2.05 ⭐ 2.03 ⭐ -0.02 👍
Method Length 27.85 ⭐ 27.98 ⭐ 0.13 👎
Working memory 6.38 🙂 6.39 🙂 0.01 👎
Quality 82.56% ⭐ 82.58% ⭐ 0.02% 👍
Other metrics Before After Change
Lines 1437 1146 -291
Changed files Quality Before Quality After Quality Change
authx/backend/base.py 84.01% ⭐ 84.01% ⭐ 0.00%
authx/backend/api/confirm.py 96.82% ⭐ 96.82% ⭐ 0.00%
authx/backend/api/crud.py 91.04% ⭐ 91.04% ⭐ 0.00%
authx/backend/api/manage.py 88.59% ⭐ 88.59% ⭐ 0.00%
authx/backend/api/password.py 93.29% ⭐ 93.29% ⭐ 0.00%
authx/backend/api/protection.py 69.82% 🙂 69.82% 🙂 0.00%
authx/backend/api/users.py 79.50% ⭐ 79.50% ⭐ 0.00%
authx/core/jwt.py 82.03% ⭐ 82.06% ⭐ 0.03% 👍
authx/database/mongodb.py 90.52% ⭐ 90.53% ⭐ 0.01% 👍
authx/middleware/Oauth2.py 56.90% 🙂 57.11% 🙂 0.21% 👍
authx/models/common.py 97.43% ⭐ 97.43% ⭐ 0.00%
authx/models/social.py 85.46% ⭐ 85.46% ⭐ 0.00%
authx/models/user.py 76.39% ⭐ 76.32% ⭐ -0.07% 👎
tests/utils.py 89.56% ⭐ 89.46% ⭐ -0.10% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
authx/middleware/Oauth2.py MiddlewareOauth2._authenticate 7 ⭐ 170 😞 14 😞 47.42% 😞 Try splitting into smaller methods. Extract out complex expressions
authx/middleware/Oauth2.py MiddlewareOauth2.__call__ 9 🙂 152 😞 10 😞 53.92% 🙂 Try splitting into smaller methods. Extract out complex expressions
authx/backend/api/protection.py UsersProtectionMixin.is_bruteforce 5 ⭐ 96 🙂 10 😞 64.59% 🙂 Extract out complex expressions
authx/backend/api/crud.py UsersCRUDMixin.search 4 ⭐ 50 ⭐ 11 😞 70.61% 🙂 Extract out complex expressions
tests/utils.py MockAuthBackend._create_token 3 ⭐ 67 🙂 10 😞 70.82% 🙂 Extract out complex expressions

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

codecov Bot commented Apr 12, 2022

Copy link
Copy Markdown

Codecov Report

Merging #225 (76dcb23) into main (860b19a) will increase coverage by 0.04%.
The diff coverage is 100.00%.

❗ Current head 76dcb23 differs from pull request most recent head db23bba. Consider uploading reports for the commit db23bba to get more accurate results

@@            Coverage Diff             @@
##             main     #225      +/-   ##
==========================================
+ Coverage   94.14%   94.18%   +0.04%     
==========================================
  Files          53       53              
  Lines        1724     1721       -3     
==========================================
- Hits         1623     1621       -2     
+ Misses        101      100       -1     
Impacted Files Coverage Δ
authx/backend/api/confirm.py 100.00% <ø> (ø)
authx/backend/api/crud.py 100.00% <ø> (ø)
authx/backend/api/manage.py 100.00% <ø> (ø)
authx/backend/api/password.py 100.00% <ø> (ø)
authx/backend/api/protection.py 100.00% <ø> (ø)
authx/backend/api/users.py 100.00% <ø> (ø)
authx/backend/base.py 100.00% <ø> (ø)
authx/models/common.py 83.33% <ø> (ø)
authx/models/social.py 100.00% <ø> (ø)
authx/models/user.py 78.82% <ø> (+0.17%) ⬆️
... and 3 more

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 860b19a...db23bba. Read the comment docs.

@yezz123
yezz123 merged commit f103f24 into main Apr 12, 2022
@yezz123
yezz123 deleted the issue/Deps branch April 12, 2022 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant