Either all return statements in a function should return an expression, or none of them should. Open
def __enter__(self):
- Read upRead up
- Exclude checks
According to PEP8, if any return statement returns an expression, any return statements where no value is returned should explicitly state this as return None, and an explicit return statement should be present at the end of the function (if reachable)
Unable to import 'humanize' Open
import humanize
- Read upRead up
- Exclude checks
Used when pylint has been unable to import a module.
Variable name f
doesn't conform to snake_case naming style Open
with open(addon_filename, encoding='utf8') as f:
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Missing class docstring Open
class HumanizeTranslator:
- Read upRead up
- Exclude checks
Used when a class has no docstring.Even an empty class must have a docstring.
Missing class docstring Open
class Translations:
- Read upRead up
- Exclude checks
Used when a class has no docstring.Even an empty class must have a docstring.
Missing module docstring Open
import json
- Read upRead up
- Exclude checks
Used when a module has no docstring.Empty modules do not require a docstring.
Missing function or method docstring Open
def pluralize(text: str, plural: bool):
- Read upRead up
- Exclude checks
Used when a function or method has no docstring.Some special methods like init do not require a docstring.
Missing function or method docstring Open
def get(self, key, lang='', default=None, plural=False):
- Read upRead up
- Exclude checks
Used when a function or method has no docstring.Some special methods like init do not require a docstring.