4👍
You can configure coverage.py to exclude files from analysis, and to exclude files from coverage’s report. I’ve done this successfully using django-nose.
Add a .coveragerc file, in the same directory coverage.py is being run (where you run your tests from), with something like the following ->
[run]
omit =
my/folder/*
[report]
omit =
my/folder/*
Source:stackexchange.com