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

0.14.0 no longer runs pylint if invoked via --pylint -m pylint #89

Closed
pjz opened this issue Jan 17, 2019 · 2 comments
Closed

0.14.0 no longer runs pylint if invoked via --pylint -m pylint #89

pjz opened this issue Jan 17, 2019 · 2 comments

Comments

@pjz
Copy link

pjz commented Jan 17, 2019

I wondered why my test suite failed and it was because my pylint checking - done with something like:

pytest --pylint -m pylint mymodule

ends up "collecting 0 items" to check.

Works fine with 0.13.0.

@carsongee
Copy link
Owner

This is actually the primary feature of 0.14.0. We cache the test results of pylint unless the file has changed to optimize runtime. So for example, if you run pytest --pylint -m pylint mymodule --cache-clear you should see those tests run. Also, if you change one file, you should see that collection number got to 1

@chaoflow
Copy link

@carsongee It seems that at least for me something is going wrong (regarding caching) with 0.14.0 and 0.14.1. They do not run any linting, whereas 0.13.0 still does.

$ pytest --pylint -m pylint --cache-clear
platform linux -- Python 3.7.3, pytest-5.0.1, py-1.8.0, pluggy-0.12.0
...
plugins: cov-2.7.1, flake8-1.0.4, forked-1.0.2, mock-1.10.4, xdist-1.29.0, pylint-0.14.1
collected 49 items / 49 deselected
$ pytest --pylint -m pylint --cache-clear
platform linux -- Python 3.7.3, pytest-5.0.1, py-1.8.0, pluggy-0.12.0
...
plugins: cov-2.7.1, flake8-1.0.4, forked-1.0.2, mock-1.10.4, xdist-1.29.0, pylint-0.13.0
collected 157 items / 49 deselected / 108 selected

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