Skip to content

Make function/method deprecation checks reusable to plugins #4049

Closed
@matusvalo

Description

@matusvalo

Is your feature request related to a problem? Please describe

stdlib checker contains checks for deprecated functions: https://github.com/PyCQA/pylint/blob/8649b721560ac33756792e405a6d7bbf7d331e57/pylint/checkers/stdlib.py#L112-L118
Unfortunately, there is no easy way how it can be simply reused to add support for deprecation checks in pylint plugins.

Describe the solution you'd like

One possible solution can be to move deprecation check logic to separate Mixin and provide hooks for customization. The plugin can create new checker by using the mixin and just adding small custom pieces.

Additional context

Generalizing deprecation check logic from stdlib to be reused in plugins. Ideal candidate is e.g. pyling-django.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions