pylint
pylint copied to clipboard
It's not just a linter that annoys you!
#Is your feature request related to a problem? Please describe Python reworked exception classes a while ago (starting version 3.3) and several error classes are now just aliases for OSError,...
## Question Is there an equivalent pylint rule to PyCharm's inspection _Redeclared names without usage_? With the example code: ```python class OptionType(graphene.InputObjectType): freeform_enabled = graphene.Boolean(required=True) freeform_enabled = GenericScalar(required=True) ``` PyCharm...
### Steps to reproduce Run `pylint -e useless-suppression --max-line-length=120 toolong.py` where `toolong.py`'s content is: ```python # ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 # ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 # ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 # pylint: disable=line-too-long # ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 # ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ``` ###...
Currently, `pyreverse` only considers classes in its UML diagrams. Right know I have a generated diagram open that shows inheritances and who is member of whom. I would like to...
### Current status pylint will issue `pointless-statement` when a class (e.g. Exception) is used. this is great: ```sh $ cat test.py Exception $ pylint3 test.py test.py:1:0: W0104: Statement seems to...
### Is your feature request related to a problem? Please describe In Python 3, UTF-8 is the default source encoding. Statements such as `# coding=utf-8` in the first two lines...
### Is your feature request related to a problem? Please describe Currently, the errors in naming of special functions aren't checked. Normal functions act as interfaces and they are readily...
### Is your feature request related to a problem? Please describe ``` iterator = (ord(char) for char in string.printable) for spam in range(10): for eggs in iterator: # this won't...
Here's an ugly pattern, commonly found in eg config files: ```python config = {} config['dir'] = 'bin' config['user'] = 'me' config['workers'] = 5 ``` An empty dict is initialized and...
### Steps to reproduce ```python from typing import NamedTuple class Car(NamedTuple): color: str mileage: float automatic: bool car1 = Car('red', 3812.3, True) car1.mileage = 12 ``` ### Current behavior Currently,...