[Python] Ignoring empty files from coverage report

Discussão em 'Python' iniciado por Stack, Julho 17, 2025.

  1. Stack

    Stack Membro Participativo

    Coverage.py will include __init__.py in its report and show it as 0 lines, but with 100% coverage.

    I want to exclude all blank files from the coverage report. I can't just add */__init__.py to omit as some of my __init__.py files have code.

    Continue reading...

Compartilhe esta Página