Top "Pylint" questions

Pylint is a Python source code analyzer looking for bugs and signs of poor quality.

How can I set the Python max allowed line length to 120 in Syntastic for Vim?

I'm using python-mode for Vim, I prefer for there to be 120 character lines rather than the stark 80 as defined in …

python vim pylint python-mode syntastic
Pylint to show only warnings and errors

I would like to use pylint to check my code but I am only interested in error and warning levels. …

python pylint
Python coding convention "Wrong continued indentation before block: found by pylint

I used pylint to check my python code, and found this convention problem: C:11, 0: Wrong continued indentation before block. + this_…

python coding-style pylint
Python - Should I put my helper functions inside or outside the class?

In Python, if some methods of a class need a helper function, but the helper function itself doesn't use anything …

python class pylint
pylint warning on 'except Exception:'

For a block like this: try: #some stuff except Exception: pass pylint raises warning W0703 'Catch "Exception"'. Why?

python pylint
How to fix Pylint "Wrong hanging indentation" and PEP8 E121?

I am trying to properly indent following piece of code: RULES_LIST = [ ('Name1', 1, 'Long string upto 40 chars'), ('Name2', 2, …

python indentation pylint pep8
Finding dead code in large python project

I've seen How can you find unused functions in Python code? but that's really old, and doesn't really answer my …

python pylint code-cleanup
Pylint W0212 protected-access

In Python, prefixing with one underscore indicates that a member should not be accessed outside of its class. This seems …

python private-members pylint
Best practice for setting the default value of a parameter that's supposed to be a list in Python?

I have a Python function that takes a list as a parameter. If I set the parameter's default value to …

python default-value pylint
Python global keyword vs. Pylint W0603

Pylint W0603 states: Using the global statement. Used when you use the "global" statement to update a global variable. PyLint …

python global-variables global pylint