Is there any way to configure Pylint to report progress? Nothing fancy,
just something like "Processing file 4 of 104..."
I'm using it to check around 100k lines of code, and right now it produces
no output while it's running. My build server has a timeout period that
resets as long as output is being generated by each step, and I have to
crank this timeout to 20 minutes to stop Pylint from failing. However, this
causes all other steps to potentially take longer, since you could
otherwise assume they timeout after 1 minute when you expect output after 5
seconds of no output.
I am having problems disabling the pylint `syntax-error` for compatibility code.
Basically, I have a compatibility sub-package  that tries importing different variants of code until it does not hit SyntaxError. There are other projects where I do the same.
I have found a bug report on a similar issue  but it was closed.
Pylint is having a hard time with this approach. When I run the check with python3, all python2-only code produces syntax-error. It is not possible to disable this error with either `# pylint: skip-file` or `# pylint: disable=syntax-error` at the start of the file.
I don't want to ignore compatibility code per se, as it tends to collect quite a lot of code smell. Since it is a severe error requiring action under most circumstances, I don't want a mental "just ignore syntax-error" to be a required for reading reports.
Is there a way to get pylint to play nice with compatibility code? Can I refactor my code to play nicer with pylint?
 disable=syntax-error doesn't work #986
I am trying to run a simple 2-line Python script through pylint on
Ubuntu without success (see https://github.com/PyCQA/pylint/issues/1305).
Following are the details. Does anyone know what step I am missing?
Steps to reproduce
$ cat li.py
$ pylint --reports=n li.py
************* Module li
F: 3, 0: Unable to import 'os' (import-error)
$ which python
$ python --version
$ ls /usr/lib/python2.7/os.py
$ cat /etc/lsb-release
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
pylint reports an import error
No errors should be reported by pylint
pylint --version output
$ pylint --version
astroid 1.0.1, common 0.61.0
Python 2.7.6 (default, Oct 26 2016, 20:30:19)