Metron-Project / metron

Django website for a comic book database
https://metron.cloud/
GNU General Public License v3.0
90 stars 7 forks source link

Use drf-spectacular. Fixes #19 #45

Closed bpepple closed 4 years ago

bpepple commented 4 years ago

Use drf-spectacular for OpenAPI support.

sourcery-ai[bot] commented 4 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 0.13 ⭐ 0.13 ⭐ 0.00
Method Length 35.77 ⭐ 37.23 ⭐ 1.46 👎
Working memory 5.68 ⭐ 5.81 ⭐ 0.13 👎
Quality 93.66% 93.62% -0.04% 👎
Other metrics Before After Change
Lines 474 487 13
Changed files Quality Before Quality After Quality Change
comicsdb/models.py 97.62% ⭐ 97.62% ⭐ 0.00%
metron/settings.py 32.47% 😞 32.39% 😞 -0.08% 👎
metron/urls.py 40.05% 😞 38.71% 😞 -1.34% 👎

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!

Let us know what you think of it by mentioning @sourcery-ai in a comment.