pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Bug description Subclassing an ABC and just calling parent raises `useless-super-delegation`. Example: ```py # pylint: disable=missing-docstring,too-few-public-methods from abc import ABC, abstractmethod class MyABC(ABC): @abstractmethod def do_something(self): print("Some implementation!") class...
### Steps to reproduce Given a file `a.py`: ```python # pylint: disable=missing-docstring import requests from urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning) ``` ### Current behavior Result of `pylint a.py`: ``` ************* Module...
### Bug description ```python import pandas as pd def function1(): """ some function declared anywhere else in the codebase. in another file and never called in my case. """ df...
### Current problem I would like to suggest pyreverse tracking class data members in adition to instance data members and draw them on graphs. It may be an option (enable/disable)...
Pylint needs a collection of performance integration tests (see PyCQA/astroid#519) help further optimization efforts. They don't need to be run as part of the standard CI or with just calling...
### Bug description Repro: 1. `mkdir test && cd test` 2. `python3 -m venv venv` 3. `venv/bin/pip install pylint pandas` 4. Write `foo.py`: ```py from dataclasses import dataclass from pandas...
### Bug description ```python # pylint: disable=missing-module-docstring,missing-function-docstring def function1(parameter): parameter.do() return # this is reported as `useless-return` as expected def function2(parameter): if parameter: return return # this is not reported...
- add: initial layout for new error - add: test cases for new checker - add: first pass at new checker ## Type of Changes | | Type | |...
**Note** Reporting using the default pre-filled template, so definitely not a minimal example of code. - [X] First, please verify that the bug is not already filled: https://github.com/pylint-dev/pylint/issues/ - [X]...
updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.2.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.14...v0.2.2) - [github.com/psf/black: 24.1.1 → 24.2.0](https://github.com/psf/black/compare/24.1.1...24.2.0) - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8)