pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Bug description Pylint crashes fatally when linting a file with the following example code: example.py ```python # pylint: disable=missing-docstring class Foo: __slots__: str ``` pylint crashed with a ``AstroidError``...
The tests in `TestImportChecker` added in #5059 use the `epylint` pylint runner, not the regular one. `epylint` patches `cwd`, so it's not an optimal runner for these tests that are...
### Bug description If an `Enum` has a `TypedDict` as a value pylint shows a false positive for "unsubscriptable-object". However, this is correctly detected by, for instance, mypy and the...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :scroll: Docs | ## Description ### Short This PR just updates the documentation page...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :hammer: Refactoring | ## Description I think the version number is clearer but this...
### Question I am building a checker plugin which is supposed to use data from all the files checked to compose a report. However, I am seeing that whenever I...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :bug: Bug fix | ## Description Closes #6094 (requires PyCQA/astroid#1519)
### Bug description ```python from time import time time.sleep(1) ``` ### Configuration _No response_ ### Command used ```shell pylint qwe.py ``` ### Pylint output ```shell ************* Module qwe qwe.py:1:0: C0114:...
### Bug description Hello, As suggested in #7011 ([message](https://github.com/PyCQA/pylint/issues/7011#issuecomment-1206857688)), I open a separate issue about that crash. I managed to spot the exact part of the code that is causing...
### Bug description Bug opened from [SO issue](https://stackoverflow.com/questions/46089480/pytest-fixtures-redefining-name-from-outer-scope-pylint) Testcase: ``` # test_wallet.py @pytest.fixture def my_wallet(): '''Returns a Wallet instance with a zero balance''' return Wallet() @pytest.mark.parametrize("earned,spent,expected", [ (30, 10, 20),...