How do I exclude entire files from coverage.py reports?
According to the documentation you can exclude code by matching lines. I want to exclude entire files, so that th
In addition to the options in the other answers, you can also configure the ignored files via setup.cfg:
setup.cfg
[coverage:run] omit = some/directory/* debug_*.py
See the documentation for details.