Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help to figure out why pylint is not triggered during the pytest run #175

Open
terlar opened this issue Sep 30, 2022 · 2 comments
Open

Help to figure out why pylint is not triggered during the pytest run #175

terlar opened this issue Sep 30, 2022 · 2 comments

Comments

@terlar
Copy link

terlar commented Sep 30, 2022

Hello, I started using this a while back, just before the 0.19.0 release (0.18.0)

At that point it was triggering on pytest, although we had those errors. Since this plugin was updated to 0.19.0 it stopped triggering and I cannot figure out why and how to get it working again.

I do see the plugin being loaded in the output, but it never executes. If I do have some pylint errors it doesn't fail. Running pylint individually works.

$ pytest
================================================ test session starts ================================================
platform linux -- Python 3.10.6, pytest-7.1.3, pluggy-1.0.0
rootdir: .../cli, configfile: pyproject.toml, testpaths: cli, tests
plugins: xdist-2.5.0, forked-1.4.0, mypy-0.9.1, pylint-0.19.0, cov-3.0.0

Any ideas what goes wrong and how to debug this. Could it have something to do with xdist, I did see it mentioned in another issue.

@carsongee
Copy link
Owner

I realize this has been wayyy too long not to respond. I just released 0.20.0. Can you try that? If you're still having trouble, can you provide me with a reproducible example where you're seeing it not work? Thanks, and sorry for the ultra-long delay!

@niall-byrne
Copy link

niall-byrne commented Jan 2, 2024

I'm also seeing this with pytest-pylint versions above 0.19.0, could it be related to the new RC file logic?
I'm also using a pyproject.toml file for my pylint config if that helps.

pytest returns exit code 5, no tests found.

I've had to downgrade in the meantime.
However on version 0.18.0, if I run it with a --pylint-rcfile==pyproject.toml flag it still fails to find tests. This is why I'm a bit suspicious of the RC file logic changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants