econchick / interrogate

Explain yourself! Interrogate a codebase for docstring coverage.
https://interrogate.readthedocs.io
MIT License
565 stars 46 forks source link

`--fail-under` not working with float #114

Closed epassaro closed 1 year ago

epassaro commented 2 years ago

Environment

Description of the bug

Passing a float to --fail-under flag results in fail despite the coverage is exactly the same.

---------------------------------------------------------------- RESULT: FAILED (minimum: 50.8%, actual: 50.8%) ----------------------------------------------------------------

What you expected to happen

Expected PASSED.

How to reproduce (as minimally and precisely as possible)

Get the coverage of your code, then run again with --fail-under and pass the exact number.

Anthing else we need to know?

econchick commented 1 year ago

Just wanted to let you know that I have a fix, and will be released in the next release (22.0 - switching to calendar versioning), hopefully by the end of the month - I'll update the issue when it's out.

Thank you for your patience!

epassaro commented 1 year ago

Thanks!