-
Notifications
You must be signed in to change notification settings - Fork 48
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
Don't run pylint by default even if installed #155
Comments
I do check them -- they run in CI. But only on Fedora stable, not on Rawhide any more. Recently pylint changed behaviour wrt. that Where do you see this failure exactly? It's not in any of the distro builds (pylint should not run anywhere there, it changes too often) or upstream CI. |
In other words, this can never be truly "fixed" -- if pylint changes to a newer version and changes rules, this will break all released versions. That's not really pylint's fault, it just means that it does not make much sense to run pylint on released versions. Right now the unit tests merely check if pylint and friends are installed. I should probably change that to explicitly opt-in, so that my CI can do this in a way that doesn't break test runs for users? |
thanks for the quick response!
ohh, okay, that makes way more sense now
running
well, it's being picked up by the test runner and while it's not a huge problem while packaging for distributions (unless pytest is pulled in by something), it would be cool if lints were not included in the test suite by default |
Running them merely when they are installed is a trap: We know that our code does not satisfy the latest pylint release. The static code tests are for upstream development, not for downstream or user-side testing. So only run them when `$TEST_CODE` is set. Plumb that through the container and the script, and set it in our GitHub workflow. Fixes #155
Running them merely when they are installed is a trap: We know that our code does not satisfy the latest pylint release. The static code tests are for upstream development, not for downstream or user-side testing. So only run them when `$TEST_CODE` is set. Plumb that through the container and the script, and set it in our GitHub workflow. Fixes #155
Fixed in PR #156 |
Running them merely when they are installed is a trap: We know that our code does not satisfy the latest pylint release. The static code tests are for upstream development, not for downstream or user-side testing. So only run them when `$TEST_CODE` is set. Plumb that through the container and the script, and set it in our GitHub workflow. Fixes #155
tests for 0.28.4 fail because
mockobject.py
was not linted correctly:i'm not really sure why pylint has to be launched from tests, but if you include lints in your testsuite, please check them before releasing a new version :p
The text was updated successfully, but these errors were encountered: