pylint
pylint copied to clipboard
It's not just a linter that annoys you!
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :bug: Bug fix | | ✓ | :hammer: Refactoring | ## Description Allow specifying...
### Question The messages [`E0106: return-arg-in-generator`](https://github.com/PyCQA/pylint/blob/2b6bd64d43ed109b1ee15f0993c010660cf56b13/pylint/checkers/base/basic_error_checker.py#L134-L141) and [`W1502: boolean-datetime`](https://github.com/PyCQA/pylint/blob/40c9e66e4756e76318469f1484602ca92d505d3f/pylint/checkers/stdlib.py#L355-L363) seem to be unreachable, i.e., there is no way to trigger them currently. The main reason behind this is that the...
### Bug description ```py # pylint: disable=missing-docstring class MyClass: # correct warning: no-method-argument def no_args(): """A method without a self argument or any other arguments.""" # correct warning: no-self-argument def...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :bug: Bug fix | | | :sparkles: New feature | | | :hammer: Refactoring...
### Bug description Given the following code: ```python # pylint: disable=missing-docstring,too-few-public-methods import abc import six class MyClass(six.with_metaclass(abc.ABCMeta)): pass ``` ### Configuration _No response_ ### Command used ```shell pylint a.py ```...
### Bug description I'm using pyreverse on one of my python project to generate the UML diagram of a specific class so i use the c option but it takes...
### Bug description ```py # pylint: disable=missing-docstring import types code = compile(input(">>> "), "", "exec") types.FunctionType(code, {})() ``` A more complete example of public code constructing `types.FunctionCode` object can be...
### Steps to reproduce Given a file `a.py`: ```python # pylint: disable=missing-module-docstring # pylint: disable=too-few-public-methods # pylint: disable=missing-class-docstring # pylint: disable=invalid-name class A: value: int obj = A() obj.value +=...
### Steps to reproduce run pylint on code: ``` # coding=utf-8 print(calculate(1.01, 2)) def calculate(value1: int, value2: float) -> int: return (value1+value2) ``` ### Current behavior Error is not issued....