pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Steps to reproduce I have the following file structure: ``` mymodule/ __init__.py foobar.py ``` In `__init__.py` I have: ```python from .foobar import * ``` And in `foobar.py` I have:...
### Steps to reproduce Have pylint check multiple modules in a single invocation. There should be duplicate lines among these modules. ``` pylint -ry *.py ``` ### Current behavior The...
### Steps to reproduce 1. `mkdir package` 2. `echo > package/module.py` 3. `echo "from .module import *" > package/__init__.py` 4. `echo "from package import *; print(module)" > package/test.py` 5. `pylint...
### Steps to reproduce ```shell mkdir test cd test virtualenv pyt pyt/bin/pip install setuptools==26.1.1 zc.buildout==1.7.1 # Add files buildout.cfg and test.py pyt/bin/buildout ./bin/pylint test.py ``` Where: buildout.cfg ``` [buildout] index...
duplicate-code: referenced code locations are ambigous if from same filename (but different folders)
1. Unzip the source setting (almost similar files `the_file.py` in different folders with a clean file in a third folder) [pylint_similarities.zip](https://github.com/PyCQA/pylint/files/2034945/pylint_similarities.zip) 2. run pylint on the sources only for message...
False positive for pygame.PixelArray(surface) "E1121:Too many positional arguments for lambda call"
### Steps to reproduce 1. I'm using vscode, and here are my workspace settings ``` { "python.linting.pylintEnabled": true, "python.linting.enabled": true, "python.linting.pylintArgs": [ "--extension-pkg-whitelist=pygame", "--disable=W,C" ], } ``` 2. My code,...
### Steps to reproduce Create following files (or unzip [sample.zip](https://github.com/PyCQA/pylint/files/1989998/sample.zip)): *test.py* ```py a = None for i in range(1, 5): if i % 2: a = "foo" else: a =...
This is slightly different than #2021: it raises the same error, but this time, the type of the variable appears to be correct. I myself wonder how this code runs...
### Steps to reproduce I use simple classproperty decorator: ```python class classproperty(classmethod): def __init__(self, fget): if isinstance(fget, (classmethod, staticmethod)): self.fget = lambda cls: fget.__get__(None, cls)() else: self.fget = fget self.cached...
_Update 06/25/22_: see [comment](https://github.com/PyCQA/pylint/issues/1630#issuecomment-1126424923) for an example that still reproduces on 2.14. ### Steps to reproduce Lint the following code: ``` from abc import ABCMeta class foo(meta=ABCMeta): pass ``` ###...