From b2462c91917bdf06db8708fb2999843f809909ff Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sat, 19 Nov 2022 22:47:24 +0100 Subject: Deprecation following the separation of emacs related file to https://github.com/emacsorphanage/pylint (#7783) Co-authored-by: Jonas Bernoulli Co-authored-by: Jacob Walls --- pylint/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pylint/__init__.py') diff --git a/pylint/__init__.py b/pylint/__init__.py index ab5fd42ab..2cc7edadb 100644 --- a/pylint/__init__.py +++ b/pylint/__init__.py @@ -16,6 +16,7 @@ __all__ = [ import os import sys +import warnings from collections.abc import Sequence from typing import NoReturn @@ -54,6 +55,12 @@ def run_epylint(argv: Sequence[str] | None = None) -> NoReturn: """ from pylint.epylint import Run as EpylintRun + warnings.warn( + "'run_epylint' will be removed in pylint 3.0, use " + "https://github.com/emacsorphanage/pylint instead.", + DeprecationWarning, + stacklevel=1, + ) EpylintRun(argv) -- cgit v1.2.1