MongoEngine / flask-mongoengine

MongoEngine flask extension with WTF model forms support
Other
842 stars 254 forks source link

Added: Support of Json Provider extension (Flask 2.2+); Compatibility with future Flask 2.3+ (#498) #507

Closed insspb closed 2 years ago

sourcery-ai[bot] commented 2 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 1.46 ⭐ 1.66 ⭐ 0.20 👎
Method Length 50.67 ⭐ 57.23 ⭐ 6.56 👎
Working memory 5.33 ⭐ 4.98 ⭐ -0.35 👍
Quality 77.25% 81.42% 4.17% 👍
Other metrics Before After Change
Lines 338 423 85
Changed files Quality Before Quality After Quality Change
docs/conf.py 70.11% 🙂 70.11% 🙂 0.00%
flask_mongoengine/json.py 81.77% ⭐ 87.51% ⭐ 5.74% 👍
tests/test_json.py 83.97% ⭐ 82.83% ⭐ -1.14% 👎

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:

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!