-
Notifications
You must be signed in to change notification settings - Fork 172
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
strictness_medium needs to exclude C0325 from PyLint's output #11
Comments
I've tried this on a (very small) test case and cannot reproduce it. Could you create a test case, or point me at the code you're running prospector against? |
Sorry, ignore me, I was running under Python 3 |
I just did some testing. You'll have to filter on |
I've been agonising about this one for a little bit. I think that the problem is a Having said that, a separate warning for print statements vs other statements would be useful, as there are valid reasons to supress the former without supressing the latter. Check out the discussion on the code-quality mailing list about this very issue : https://www.mail-archive.com/code-quality@python.org/msg00202.html I will create a pull request on pylint itself about this to create a new error message, which will make it a lot easier for prospector to ignore. It's not particularly easy to ignore messages based on context right now. |
... just to log it correctly, for the record: it's |
Currently, in code written to work in both Python 2.x and Python 3.x, the default
strictness_medium
profile for prospector causes PyLint to return this error when run under Python 2.x:The text was updated successfully, but these errors were encountered: