avendesora / pythonbible-parser

A python library for parsing Bible texts in various formats and convert them into a format for easy and efficient use in python.
MIT License
8 stars 1 forks source link

update develop with the latest from main #5

Closed avendesora 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 0.21%.

Quality metrics Before After Change
Complexity 2.43 ⭐ 2.30 ⭐ -0.13 👍
Method Length 36.59 ⭐ 35.88 ⭐ -0.71 👍
Working memory 6.55 🙂 6.50 🙂 -0.05 👍
Quality 81.10% 81.31% 0.21% 👍
Other metrics Before After Change
Lines 963 990 27
Changed files Quality Before Quality After Quality Change
pythonbible_parser/json_converter.py 89.03% ⭐ 89.40% ⭐ 0.37% 👍
pythonbible_parser/osis/parser.py 72.26% 🙂 72.43% 🙂 0.17% 👍
tests/conftest.py 94.68% ⭐ 94.68% ⭐ 0.00%
tests/test_osis_parser.py 86.16% ⭐ 86.45% ⭐ 0.29% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
pythonbible_parser/osis/parser.py _handle_child_element 9 🙂 123 😞 11 😞 55.33% 🙂 Try splitting into smaller methods. Extract out complex expressions
pythonbible_parser/osis/parser.py _handle_verse_tag 10 🙂 109 🙂 11 😞 56.19% 🙂 Extract out complex expressions
pythonbible_parser/osis/parser.py _get_paragraphs 2 ⭐ 116 🙂 11 😞 62.99% 🙂 Extract out complex expressions
pythonbible_parser/osis/parser.py _get_paragraph_from_element 6 ⭐ 77 🙂 10 😞 66.36% 🙂 Extract out complex expressions

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!