coveragepy
coveragepy copied to clipboard
report.omit not working with relative_files
When doing https://github.com/pypa/virtualenv/pull/2477 I noticed that with relative_files report.omit seems no longer active. See failing run https://github.com/pypa/virtualenv/actions/runs/3824948711/jobs/6507540653, while before turning relative files on here https://github.com/pypa/virtualenv/actions/runs/3821105582/jobs/6499921063 seems to still work.
The config file is here: https://github.com/gaborbernat/virtualenv/blob/fix/pyproject.toml#L96-L112
Hmm, it looks like a relative omit pattern like 'src/whatever/*.py'
won't work with relative_files=true
. You can make it work for now with a pattern of '*/src/whatever/*.py'
while I figure out the implications of a change...
Your workaround worked perfectly, so I adopted that for now.
As a data point, I believe this worked when we were using version 6.5. So it might be a regression between those versions.