pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Steps to reproduce `pip install pylint py` Create a file with the following content: ``` """ Example file for pylint. """ from py.path import local print(local('/etc/example.txt')) ``` Run `pylint`...
### Steps to reproduce ```python x = 10 y = f'foo' f'{x}' z = f'{x}' f'foo' ``` ### Current behavior no errors ### Expected behavior 2nd and 3rd lines should...
### Steps to reproduce In my project, I have a module named sql_control and add the Pylint to check it. Everything is ok when I execute the command below: `poetry...
### Steps to reproduce 1. Install "pyinputplus" with pip3 2. Make a file with content of "import pyinputplus" 3. Run code in vsCode, and look at the "problems" and/or output...
### Steps to reproduce ``` mkdir package echo 'import package package.__path__._path' > test.py /pylint test.py --errors-only ``` ### Current behavior > ************* Module test > test.py:2:0: E1101: Instance of 'list'...
After upgrading from pylint 2.4.4 to 2.5.2, we started getting unused-argument errors with kwargs that are sent to decorators for Marshmallow. What is weird is that it is not consistent....
### Steps to reproduce 1. Run pylint over the following test case: ``` """docstring""" class PV1Axis(): """Single-axis tracking PV.""" def __init__(self, polygon, capacity, filename, column, build_limit=None, label='PV'): pass class CST():...
### Steps to reproduce 1. Run pylint over the following small test case: ``` """docstring""" class PV1Axis(): """Single-axis tracking PV.""" def __init__(self, polygon, capacity, filename, column, build_limit=None, label='PV'): pass class...
### Steps to reproduce 1. Follow https://github.com/PyCQA/pylint/blob/369d952c7e5df010932cf89e528b2f6e9ff08dd6/pylint/epylint.py#L36 2. Run pylint a/c/y.py ### Current behavior ``` $ pylint a/c/y.py ************* Module y a/c/y.py:1:0: C0114: Missing module docstring (missing-module-docstring) a/c/y.py:1:0: E0401: Unable...
### Steps to reproduce 1. applying the following patch and running the two tests leads to one failure and one pass ```diff - def test_can_list_directories_without_dunder_init(self, tmpdir): + @pytest.mark.parametrize("modname", ['warning', 'warnings'])...