Stubs.py will no longer call sys.exit(1) on error, but raise exception instead (Python3)
Merge request reports
Activity
Added 1 commit:
- dc98d135 - Stubs.py will no longer call sys.exit(1) on error, but raise exception instead
By Konrad Grochowski on 2016-06-21T11:49:38
cTypesResultType is not a string, resType is :) second one - sorry, I was two quick with cherry-pick, commit amended.
pylint (1.5.6) still generates 33 messages if called via
make pylint
, so I must have missed it.BTW: have you considered setting up tox configuration?
By Konrad Grochowski on 2016-06-21T11:55:19
I have configured pylint to ignore these:
let g:syntastic_python_checker_args = "--ignore=E501,E225" let g:syntastic_python_pylint_post_args = "--disable=C0103,C0301,W0212,C0111"
i.e.
Invalid attribute name Invalid method name Invalid function name Invalid constant name Line too long Missing method docstring Missing module docstring ...
and other similar "phrasing", inconsequential things. I care about "real errors", though - hence the use of pylint and, more importantly, mypy :-)
I was unaware of tox - added to TODO, thanks for mentioning it.
By Thanassis Tsiodras on 2016-06-21T12:06:13
mentioned in commit 9fa8e28a
By Thanassis Tsiodras on 2016-06-21T12:07:55
as for names in pylint - I've created pylint.cfg (
pylint --generate-rcfile
) file and in it you can easily reconfigure regexps used to validate names, line length etc. Later pylint call looks like thispylint --rcfile=pylint.cfg
and configuration can be stored in repo and under version control etc.By Konrad Grochowski on 2016-06-21T12:12:01