pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Bug description ```python session: aiohttp.ClientSession try: async with session.get('...') as resp: await resp.text() except Exception as exc: if not isinstance(exc, aiohttp.ClientResponseError) or exc.status != 404: xxx() else: yyy() ```...
This ability already requested in https://github.com/PyCQA/pylint/issues/842, But I think it's only for Pylint, not Pyreverse. With [PEP 420 -- Implicit Namespace Packages](https://www.python.org/dev/peps/pep-0420/) I can work seamlessly without ever needed the...
### Current problem Dataclasses sometimes deliberately have a lot of arguments, which is also the purpose of the classes. With normal classes, methods and functions it makes sense if the...
### Current problem I have seen code where a copy/deepcopy of an immutable data is made. As far as I understand, it is a useless operation. ### Desired solution Pylint...
### Current problem The `datetime.utcnow()` returns timezone-naive datetimes, which is almost never what you want when working with utc timestamps. The[ standard library documentation for the function](https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow) itself has a...
### Question As the title suggests I am writing a pylint plugin with custom messages. I would like to set a base URL pointing to the html docs of my...
### Current problem When I run pylint, report warning are found on files ignored by `.gitignore` (vendor, generated file etc...). Because of that, I have to specify nearly the same...
### Bug description ```python from typing import Callable, Concatenate, ParamSpec, TypeVar S = TypeVar('S') P = ParamSpec('P') RealFun = Callable[Concatenate[S, P], None] FunWithEvent = Callable[Concatenate[S, int, P], None] def run_event()...
### Bug description pylint detects a false positive warning (W0611) when checking a file that is named "signal.py". Even if the file is empty. ### Configuration _No response_ ### Command...
### Bug description ```python """ Pylint test """ import datetime print(datetime.datetime.not_a_member) ``` ### Configuration _No response_ ### Command used ```shell pylint a.py ``` ### Pylint output ```python -------------------------------------------------------------------- Your code...