You can omit modules with the –omit flag. It takes a comma-separated list of path prefixes. So for example:
coverage run my_program.py
coverage report --omit=path/to/3rdparty
You can omit modules with the –omit flag. It takes a comma-separated list of path prefixes. So for example:
coverage run my_program.py
coverage report --omit=path/to/3rdparty