pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Bug description While working on a piece of code, `pylint` warned about an unused variable from a function parameter. Especially because the name/position of the function argument is important...
### Bug description `from . import ` is a frequent pattern in Python and people can misspell a submodule name. As the misspelled name should not conflict with any attribute...
### Bug description Cannot apply pylint to files in parent- and sub-folders using bash CLI. ### Command used ```shell pylint src/packages/ics/plugins/ ``` ### Pylint output ```shell Traceback (most recent call...
`logging-fstring-formatting` in [line 275](https://github.com/PyCQA/pylint/blob/360124d8a597422cdc9e94459f87da77d18cbaea/pylint/checkers/logging.py#L265) of logging.py should probably be `logging-fstring-interpolation` (see usage in [line 265](https://github.com/PyCQA/pylint/blob/360124d8a597422cdc9e94459f87da77d18cbaea/pylint/checkers/logging.py#L265)): https://github.com/PyCQA/pylint/blob/360124d8a597422cdc9e94459f87da77d18cbaea/pylint/checkers/logging.py#L263-L277 `logging-fstring-formatting` is only used once, suggesting it's a mistake. See this search: https://github.com/PyCQA/pylint/search?q=logging-fstring-formatting
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :sparkles: New feature | ## Description Closes #5488 We have #2079 to track further...
### Bug description Creating a set with elements a class from the `typing` module. For example below using a `List`. ```python # pylint: disable=missing-module-docstring,pointless-statement from typing import List {List} ```...
### Current problem Although #4784 fixes some problems with ``superfluous-parens`` it still does not consider the following cases: ```python Z = "TestString" X = ("Test " + "String") # Bad...
### Current problem Recently, [a paper](https://arxiv.org/abs/2207.05613) could automatically refactor non-idiomatic Python code with nine Python idioms: List/set/dict-comprehension, chain-comparison, truth-value-test, loop-else, star-in-function-call, assign-multiple-targets, for-multiple-targets. And they pulled some requests to GitHub...
### Steps to reproduce 1. Create a file with repeated code: code.py 2. pylint --disable=all --enable=similarities code.py ### Current behavior Do not show code repeated in the same file, ###...
### Bug description A false positive is reported for `unexpected-keyword-arg` starting with pylint 2.15.0 for dataclasses with multiple inheritance, as seen in the code below. The issue is present in...