rec / safer

๐Ÿงท A safer writer ๐Ÿงท
https://rec.github.io/safer/
MIT License
174 stars 10 forks source link

Work around mkdocstr issue #22

Closed rec closed 1 year ago

sourcery-ai[bot] commented 1 year ago

Sourcery Code Quality Report

Merging this PR leaves code quality unchanged.

Quality metrics Before After Change
Complexity 15.20 ๐Ÿ™‚ 15.20 ๐Ÿ™‚ 0.00
Method Length 65.50 ๐Ÿ™‚ 65.50 ๐Ÿ™‚ 0.00
Working memory 5.71 โญ 5.71 โญ 0.00
Quality 55.58% ๐Ÿ™‚ 55.58% ๐Ÿ™‚ 0.00%
Other metrics Before After Change
Lines 684 684 0
Changed files Quality Before Quality After Quality Change
safer.py 55.58% ๐Ÿ™‚ 55.58% ๐Ÿ™‚ 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
safer.py open 32 ๐Ÿ˜ž 326 โ›” 16.86% โ›” Refactor to reduce nesting. Try splitting into smaller methods
safer.py writer 28 ๐Ÿ˜ž 229 โ›” 14 ๐Ÿ˜ž 26.97% ๐Ÿ˜ž Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
safer.py dump 24 ๐Ÿ˜ž 183 ๐Ÿ˜ž 9 ๐Ÿ™‚ 41.27% ๐Ÿ˜ž Refactor to reduce nesting. Try splitting into smaller methods
safer.py _FileCloser._make_stream 7 โญ 137 ๐Ÿ˜ž 8 ๐Ÿ™‚ 61.72% ๐Ÿ™‚ Try splitting into smaller methods

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!