Hi. On my new project, pylint takes 2 seconds. If I add a call to a class in 
3rd party package 'pyglet', then pylint checking time goes up to 2 minutes. I 
presume it's checking pyglet. How do I tell pylint not to do that?

Minimal repro:

 $ mkvirtualenv -p python3.7 pylinttest
 (pylinttest) $ pip install -U pylint pyglet
 (pylinttest) $ cat pylint_test.py
 import pyglet
 
 def create(title):
 win = pyglet.window.Window()

 (pylinttest) $ pylint pylint_test.py
 ************* Module pylint_test
 pylint_test.py:5:0: C0305: Trailing newlines (trailing-newlines)
 pylint_test.py:1:0: C0111: Missing module docstring (missing-docstring)
 pylint_test.py:3:0: C0111: Missing function docstring (missing-docstring)
* 2 MINUTE PAUSE HERE*
 pylint_test.py:3:11: W0613: Unused argument 'title' (unused-argument)
 pylint_test.py:4:4: W0612: Unused variable 'win' (unused-variable)


If I change the line:

 win = pyglet.window.Window()

by removing the '( )', so that we no longer call Window:

 win = pyglet.window.Window

then pylint checks go back down to 2 seconds.

I tried many different config settings, on the command line and in my pylintrc, 
such as:

ignored-modules=pyglet
ignored-modules=pyglet.window
ignored-classes=pyglet.window.Window
ignore=pyglet

to no avail.

 Forgive me, I must be missing something obvious. Any pointers what I should go 
read about would appreciated.

Best,

 Jonathan

--
Jonathan Hartley +1(507)513-1101
@tartley http://tartley.com
_______________________________________________
code-quality mailing list
code-quality@python.org
https://mail.python.org/mailman/listinfo/code-quality

Reply via email to