Disallow impossible values for fail_under#746
Conversation
|
I tried to find a place to implement this other than a method that currently only returns a bool - but I didn't find anywhere that configs are validated, so I hope this is ok. Very open to feedback here! |
|
Thanks! I took a quick look earlier, and I think I would have put the check in the same place you did. I wouldn't make the message so flip :) Feel free to add yourself to the CONTRIBUTORS file. :) |
21c91a9 to
bb58942
Compare
Codecov Report
@@ Coverage Diff @@
## master #746 +/- ##
==========================================
- Coverage 89.94% 89.92% -0.02%
==========================================
Files 78 78
Lines 10799 10804 +5
Branches 1116 1117 +1
==========================================
+ Hits 9713 9716 +3
- Misses 959 960 +1
- Partials 127 128 +1
Continue to review full report at Codecov.
|
|
@nedbat I updated the error message to be a little less... opinionated. 😀 Codecov failure appears once I force-pushed the branch, it should probably re-report at some later time? |
Since there's no way were likely to achieve greater than 100% code coverage, disallow usage of any value above 100. Resolves coveragepy#743 Signed-off-by: Mike Fiedler <miketheman@gmail.com>
bb58942 to
09da2fc
Compare
|
Thanks! |
Since there's no way were likely to achieve greater than 100% code coverage,
disallow usage of any value above 100.
Resolves #743
Signed-off-by: Mike Fiedler miketheman@gmail.com