coverage xml -i doesn't work for me.
coverage xml -i
I found out that the <tmpdir>/_remote_module_non_scriptable.py is generated by pytorch.
<tmpdir>/_remote_module_non_scriptable.py
Solution: add to pyproject.toml
pyproject.toml
[tool.coverage.run] omit = [ # omit pytorch-generated files in /tmp "/tmp/*", ]