pylint
pylint copied to clipboard
It's not just a linter that annoys you!
Originally reported by: **Fergal Hainey (BitBucket: [FerHai](http://bitbucket.org/FerHai))** --- I'm using pytest and redefined-outer-name is a false negative in these cases as it's part of pytest's design. I'd like to run...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :sparkles: New feature | | ✓ | :scroll: Docs | ## Description Closes #5920
Issue #2738 appears to persist on pylint 2.9.5 as well as 3.0.0-a4 (as retrieved using `pip install --upgrade [--pre] pylint` on this date). The merge request for that issue seems...
### Current problem I want an argument/config option to disable sys.path patching. Pylint currently modifies sys.path based on `__init__.py` in folders of the linted files. sys.path patching is messy to...
Adding another escape to small doc PR submitted in #7103, looks like the autoupgrade removed the escape. CC @Pierre-Sassoulas
### Bug description ```python # pylint: disable=missing-module-docstring,invalid-name,unnecessary-comprehension import sys if sys.platform == "linux": import os print(os.getgroups()) # no error print([group for group in os.getgroups()]) # error print({group for group in...
### Bug description I am using a class extending BaseModel from pydantic to store some data. ``` from pydantic import BaseModel class Keyword(BaseModel): foo: str bar: int ``` Pylint gives...
### Bug description Here is the contents of the file `sglobals.py` ``` #pylint: disable=missing-module-docstring TheGreetingWithABadName = "Hello, World!" ``` Here is the output of `pylint sglobals.py`: ``` sglobals.py:2:0: C0103: Constant...
### Bug description Since pylint splits on commas in this option, instead of taking a list of strings, if there are any commas in the regular expression, the result is...
### Bug description Having two classes with 5 methods that have a `pass` implementation (assuming the default minimum 4 lines of similarity) results in a false positive, where methods with...