Top "Pylint" questions

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

Pylint invalid constant name

I'm receiving a Pylint error regarding my constant: MIN_SOIL_PARTICLE_DENS (invalid name). Any ideas why this constant is …

python coding-style pylint
How do I get PyLint to recognize numpy members?

I am running PyLint on a Python project. PyLint makes many complaints about being unable to find numpy members. How …

python numpy pylint
Instance attribute attribute_name defined outside __init__

I split up my class constructor by letting it call multiple functions, like this: class Wizard: def __init__(self, argv): …

python constructor pylint
Why is the use of len(SEQUENCE) in condition values considered incorrect by Pylint?

Considering this code snippet: from os import walk files = [] for (dirpath, _, filenames) in walk(mydir): # more code that modifies files …

python conditional pylint
Avoid Pylint warning E1101: 'Instance of .. has no .. member' for class with dynamic attributes

Imagine a function which dynamically adds attributes to an object using setattr. The reason for doing so is that I …

python dynamic pylint
Disable all Pylint warnings for a file

We are using Pylint within our build system. We have a Python package within our code base that has throwaway …

python pylint
What does pylint's "Too few public methods" message mean

I'm running pylint on some code, and receiving the error "Too few public methods (0/2)". What does this message mean? The …

python pylint
"No name in module" error from Pylint

I have a file named main.py with the following code: #!/usr/bin/env python3 import utils.stuff if __name__ == "__…

python pylint
Run Pylint for all Python files in a directory and all subdirectories

I have find . -iname "*.py" -exec pylint -E {} ;\ and FILES=$(find . -iname "*.py") pylint -E $FILES If I understand correctly, …

python pylint
How to run Pylint with PyCharm

I want to configure pylint as an external tool on my entire project directory for a python project that I'm …

python python-3.x pycharm pylint