Closed sourcery-ai[bot] closed 3 years ago
β Merging this PR will increase code quality in the affected files by 0.36%.
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 2.25 β | 1.99 β | -0.26 π |
Method Length | 71.29 π | 70.90 π | -0.39 π |
Working memory | 9.38 π | 9.31 π | -0.07 π |
Quality | 68.18% π | 68.54% π | 0.36% π |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 2406 | 2386 | -20 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
benchmark/benchmark_dev_team.py | 48.16% π | 48.16% π | 0.00% |
benchmark/benchmark_mixed.py | 38.18% π | 40.42% π | 2.24% π |
processscheduler/base.py | 85.75% β | 86.74% β | 0.99% π |
processscheduler/cost.py | 83.67% β | 85.13% β | 1.46% π |
processscheduler/jupyter_ui.py | 71.52% π | 71.89% π | 0.37% π |
processscheduler/problem.py | 71.32% π | 72.23% π | 0.91% π |
processscheduler/util.py | 75.24% β | 75.34% β | 0.10% π |
test/test_indicator.py | 74.01% π | 74.01% π | 0.00% |
test/test_resource_tasks_distance.py | 57.71% π | 58.04% π | 0.33% π |
test/test_solver.py | 75.22% β | 75.16% β | -0.06% π |
Here are some functions in these files that still need a tune-up:
File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
---|---|---|---|---|---|---|
test/test_resource_tasks_distance.py | TestResourceTasksDistance.test_resource_tasks_distance_double_time_period_2 | 1 β | 303 β | 15 π | 44.24% π | Try splitting into smaller methods. Extract out complex expressions |
processscheduler/problem.py | SchedulingProblem.add_objective_flowtime_single_resource | 4 β | 206 β | 12 π | 50.35% π | Try splitting into smaller methods. Extract out complex expressions |
test/test_indicator.py | TestIndicator.get_single_resource_utilization_problem | 0 β | 202 π | 14 π | 51.64% π | Try splitting into smaller methods. Extract out complex expressions |
test/test_solver.py | TestSolver.test_alternative_workers_2 | 0 β | 156 π | 17 β | 52.31% π | Try splitting into smaller methods. Extract out complex expressions |
test/test_resource_tasks_distance.py | TestResourceTasksDistance.test_resource_tasks_distance_4 | 0 β | 199 π | 13 π | 53.28% π | Try splitting into smaller methods. Extract out complex expressions |
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!
Merging #94 (4bd47f4) into master (5e1988f) will increase coverage by
0.13%
. The diff coverage is78.57%
.
@@ Coverage Diff @@
## master #94 +/- ##
==========================================
+ Coverage 94.94% 95.07% +0.13%
==========================================
Files 34 34
Lines 3857 3838 -19
==========================================
- Hits 3662 3649 -13
+ Misses 195 189 -6
Impacted Files | Coverage Ξ | |
---|---|---|
processscheduler/jupyter_ui.py | 44.50% <0.00%> (+1.42%) |
:arrow_up: |
test/test_indicator.py | 99.52% <ΓΈ> (ΓΈ) |
|
processscheduler/base.py | 94.11% <100.00%> (-0.23%) |
:arrow_down: |
processscheduler/cost.py | 85.71% <100.00%> (-0.65%) |
:arrow_down: |
processscheduler/problem.py | 97.14% <100.00%> (-0.12%) |
:arrow_down: |
processscheduler/util.py | 57.14% <100.00%> (-2.32%) |
:arrow_down: |
test/test_resource_tasks_distance.py | 99.46% <100.00%> (ΓΈ) |
|
test/test_solver.py | 99.64% <100.00%> (-0.01%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Ξ = absolute <relative> (impact)
,ΓΈ = not affected
,? = missing data
Powered by Codecov. Last update 5e1988f...4bd47f4. Read the comment docs.
Branch
master
refactored by Sourcery.If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.
See our documentation here.
Run Sourcery locally
Reduce the feedback loop during development by using the Sourcery editor plugin:
Review changes via command line
To manually merge these changes, make sure you're on the
master
branch, then run:Help us improve this pull request!