python-best-practices-cookiecutter
python-best-practices-cookiecutter copied to clipboard
Make template usable for writing python libraries
Formerly this template only produced programs, now it will remove main.py if not specified as a binary. I use the term binary just to refer to executable, a better name may be preferable.
Sourcery Code Quality Report
β Β Merging this PR will decrease code quality in the affected files by 0.56%.
| Quality metrics | Before | After | Change |
|---|---|---|---|
| Complexity | 0.65 β | 0.88 β | 0.23 π |
| Method Length | 19.20 β | 21.67 β | 2.47 π |
| Working memory | 3.65 β | 4.04 β | 0.39 π |
| Quality | 92.36% β | 91.80% β | -0.56% π |
| Other metrics | Before | After | Change |
|---|---|---|---|
| Lines | 20 | 28 | 8 |
| Changed files | Quality Before | Quality After | Quality Change |
|---|---|---|---|
| hooks/post_gen_project.py | 92.36% β | 91.80% β | -0.56% π |
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:
- β 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!
Forgot to remove print statement & added global var to make things simpler.