Skip to content

Increase coverage percent digits after decimal point to 2

By default coverage will only report the whole percent number like 46%. However, Gitlab shows 2 decimal digits in on its MR pages. (like 46.12%)

Set the coverage percent display to 2 decimal digits using the pyproject.toml file. Coverage.py is able to read configuration when running on Python 3.11 or higher. Debian 12 comes with Python 3.12.

Merge request reports

Loading