Top "Pylint" questions

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

Pylint: overriding max-line-length in individual file

Is it possible to change max-line-length settings for one file out of a project (while performing all other checks defined …

python pylint
How do I tell PyLint "it's a variable, not a constant" to stop message C0103?

I have a module-level variable in my Python 2.6 program named "_log", which PyLint complains about: C0103: Invalid name "_log" (should …

python pylint
ImportError : Attempted relative import with no known parent package

I am learning to program with python and I am having issues with importing from a module in a package. …

python pylint
"Unused import warning" and pylint

So I'm working on a project in Python and trying to keep it up to standards with pylint and just …

python warnings pylint
Pylint can't find SQLAlchemy query member

I have a Flask (v0.10.1) application using Flask-SQLAlchemy (v2.0) and I'm trying to configure Pylint to check it. Running with …

python python-3.x sqlalchemy flask-sqlalchemy pylint
Should wildcard import be avoided?

I'm using PyQt and am running into this issue. If my import statements are: from PyQt4.QtCore import * from PyQt4.…

python pyqt pyqt4 pylint python-import
Ignore by directory using Pylint

The following is from the Pylint documentation: --ignore=<file> Add <file or directory> to the black …

python pylint
Silence PyLint warning about unused variables for string interpolation

The say module brings string interpolation to Python, like this: import say def f(a): return say.fmt("The value …

python pylint unused-variables
how to tell pylint to ignore certain imports?

I'm developing software for Windows with Python. I am developing on Linux, and I am using Pylint to check my …

python pylint
How to handle the pylint message: Warning: Method could be a function

I have a python class and ran pylint against it. One message it gave was: Warning: Method could be a …

python oop pylint