diff options
Diffstat (limited to 'pylint/__init__.py')
-rw-r--r-- | pylint/__init__.py | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/pylint/__init__.py b/pylint/__init__.py index 2cc7edadb..cc0f609aa 100644 --- a/pylint/__init__.py +++ b/pylint/__init__.py @@ -1,6 +1,6 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt from __future__ import annotations @@ -9,14 +9,12 @@ __all__ = [ "version", "modify_sys_path", "run_pylint", - "run_epylint", "run_symilar", "run_pyreverse", ] import os import sys -import warnings from collections.abc import Sequence from typing import NoReturn @@ -48,22 +46,6 @@ def _run_pylint_config(argv: Sequence[str] | None = None) -> None: _PylintConfigRun(argv or sys.argv[1:]) -def run_epylint(argv: Sequence[str] | None = None) -> NoReturn: - """Run epylint. - - argv can be a list of strings normally supplied as arguments on the command line - """ - 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) - - def run_pyreverse(argv: Sequence[str] | None = None) -> NoReturn: """Run pyreverse. @@ -96,12 +78,12 @@ def modify_sys_path() -> None: - Remove the first entry. This will always be either "" or the working directory - Remove the working directory from the second and third entries if PYTHONPATH includes a ":" at the beginning or the end. - https://github.com/PyCQA/pylint/issues/3636 + https://github.com/pylint-dev/pylint/issues/3636 Don't remove it if PYTHONPATH contains the cwd or '.' as the entry will only be added once. - Don't remove the working directory from the rest. It will be included if pylint is installed in an editable configuration (as the last item). - https://github.com/PyCQA/pylint/issues/4161 + https://github.com/pylint-dev/pylint/issues/4161 """ cwd = os.getcwd() if sys.path[0] in ("", ".", cwd): |