pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Bug description The option `--enable` does not give an error when an unknown error code is used. It should give an error. What I was trying is to enable...
### Bug description Two files required to reproduce: - `app/main.py`: ```python # pylint: disable=missing-module-docstring from .lib.a import hello hello() ``` - `app/lib/a.py`: ```python # pylint: disable=missing-module-docstring # pylint: disable=missing-function-docstring def...
### Bug description ```python class DebugTrueDetected(Exception): ... ``` ### Command used ```shell pylint a.py ``` ### Pylint output ```python C0321: More than one statement on a single line (multiple-statements) ```...
Following on from the discussion on #746, this is a draft proposal to start disabling certain messages by default. Furthermore, to make it easier to run pylint side by side...
### Bug description I first experienced the bug locally. I then reproduced it in CI [here](https://github.com/Raymi306/python-tutorial/actions/runs/7683376000/job/20938697932?pr=25) Commit link: https://github.com/Raymi306/python-tutorial/commit/af22bb6dc370267ad06d6a491d56127e2c1c67ea ### Configuration ```ini [MASTER] # A comma-separated list of package or...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :sparkles: New feature | ## Description Closes #9097
Similar issues https://github.com/pylint-dev/pylint/issues/4386 https://github.com/pylint-dev/pylint/issues/5857 ### Bug description ```python #!/usr/bin/python3 from dataclasses import dataclass import inspect @dataclass(init=False, frozen=True) class A: a: str @dataclass(frozen=True) class B(A): b: str if __name__ == "__main__":...
The main issue here is that using PyLint is actually slow compared to IDEs, and I believe a great deal in that is that PyLint always has to start from...
### Bug description ```python import signal import sys def handle_signal(): signal.signal(signal.SIGINT, lambda sig, frame: [print("Aborted using CTRL+C"), sys.exit(1)]) print("Signal handler installed.") ``` ### Configuration _No response_ ### Command used ```shell...
### Bug description Hi, I'm little confused by this warning which `pylint 2.12.2` found in the following `example.py`: ```python """cell-var-from-loop example.""" grouped_messages = { "category_a": [ {"key_a": 3}, {"key_a": 1},...