pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Steps to reproduce "requirements.txt" file for the code-example below: ``` astroid==2.4.0 attrs==19.3.0 autopep8==1.5.2 isort==4.3.21 lazy-object-proxy==1.4.3 mccabe==0.6.1 mypy==0.770 mypy-extensions==0.4.3 psutil==5.7.0 psycopg2-binary==2.8.5 pycodestyle==2.5.0 pylint==2.5.0 six==1.14.0 SQLAlchemy==1.3.16 sqlalchemy-stubs==0.3 toml==0.10.0 typed-ast==1.4.1 typing-extensions==3.7.4.2 wrapt==1.12.1...
### Steps to reproduce ```py import attr class Base: def __init__(self): pass @attr.s(auto_attribs=True) class Sub(Base): value: int print(Sub(123)) ``` ### Current behavior PyLint reports about the last line: ``` E1121:...
The `using-constant-test` warning shows up on uses of things that pylint does not understand are properties when it could not inspect the decorator implementation. ### Reproduction Given the following code,...
In a directory with 500000 LOC of python files, we noticed pylint would hang for the entire directory. After investigating, it actually was just taking **forever** (60+ minutes) to compute...
### Steps to reproduce 1. Create `.pylintrc` file: ``` [MASTER] disable=C, W ``` 2. Create `test.py` file: ```python # pylint: enable=C,W import json def test(foo = "bar"): return foo ```...
### Steps to reproduce 1. Reproducing code [wrong_no_member.txt](https://github.com/PyCQA/pylint/files/4037739/wrong_no_member.txt) ``` from sqlalchemy import Column, Boolean from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.schema import PrimaryKeyConstraint Base = declarative_base() class...
### Steps to reproduce I have a namedtuple that I want to mutate on a function: ```python foo = collections.namedtuple("foo", "") def bar() -> foo # Here pylint warns me...
### Summary Pylint is behaving differently based on different operating systems. On Mac it is throwing a `not-callable` and on Linux, it is throwing a `no-member`. ### Steps to reproduce...
Hello, ### Steps to reproduce Run pylint on the following code: ```python """Lorem ipsum""" import pandas as pd def demo(): """Demo for the false positive""" with pd.ExcelWriter("demo.xlsx") as writer: print(writer)...
### Steps to reproduce 1. Create file `foo.py` containing: ```python from typing import Generic, TypeVar T = TypeVar('T') class Base(Generic[T]): def __init__(self): self.val = False class Derived(Base[T]): def func(self): self.val...