pylint-pytest icon indicating copy to clipboard operation
pylint-pytest copied to clipboard

🐛 Ignore collection failures in non-tests

Open webknjaz opened this issue 2 years ago • 6 comments

This change applies the pre-existing patterns to identify if the files with collection problems are tests. It is then used to eliminate the false-positives of F6401 (cannot-enumerate-pytest-fixtures).

As a side effect, this patch also includes precise file paths that may be used to reproduce the problem.

Fixes #20 Fixes #21

webknjaz avatar Aug 17 '21 23:08 webknjaz

Hey @nedbat, could you check this PR in the context of your report #20?

webknjaz avatar Aug 17 '21 23:08 webknjaz

I hope this feature will be incorporated soon because my F6401 is really annoying me. Sometimes it just show cannot-enumerate-pytest-fixtures and I don't know what went wrong,

whg517 avatar Aug 30 '21 02:08 whg517

@webknjaz thanks, this does fix my issue.

nedbat avatar Aug 31 '21 22:08 nedbat

Any further progress on this? Really appreciate if this mr can be merged with a new version released.

huxuan avatar Mar 28 '22 02:03 huxuan

I've confirmed that this pull request prevents the errors I reported.

nedbat avatar Mar 28 '22 23:03 nedbat

@reverbc Can this get merged & published?

marcgibbons avatar Apr 27 '22 14:04 marcgibbons