diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-03-21 12:38:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 12:38:13 +0100 |
commit | d6595750c67f9101b842291ed44bafde7b065bd8 (patch) | |
tree | 12b54e320083564f59a36cd58676dd8069a2b2f0 /pylint/lint | |
parent | 77a392d04b11eb2c438c38fc187890faefd760e3 (diff) | |
download | pylint-git-d6595750c67f9101b842291ed44bafde7b065bd8.tar.gz |
[deprecation] Remove 'do_exit' from the 'Run' constructor (#8472)
Diffstat (limited to 'pylint/lint')
-rw-r--r-- | pylint/lint/run.py | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/pylint/lint/run.py b/pylint/lint/run.py index 7c2e8c0e6..961d78a53 100644 --- a/pylint/lint/run.py +++ b/pylint/lint/run.py @@ -9,7 +9,7 @@ import sys import warnings from collections.abc import Sequence from pathlib import Path -from typing import Any, ClassVar +from typing import ClassVar from pylint import config from pylint.checkers.utils import clear_lru_caches @@ -97,9 +97,6 @@ def _cpu_count() -> int: return cpu_count -UNUSED_PARAM_SENTINEL = object() - - class Run: """Helper class to use as main for pylint with 'run(*sys.argv[1:])'.""" @@ -123,7 +120,6 @@ group are mutually exclusive.", args: Sequence[str], reporter: BaseReporter | None = None, exit: bool = True, # pylint: disable=redefined-builtin - do_exit: Any = UNUSED_PARAM_SENTINEL, ) -> None: # Immediately exit if user asks for version if "--version" in args: @@ -215,16 +211,6 @@ group are mutually exclusive.", else: linter.check(args) score_value = linter.generate_reports() - - if do_exit is not UNUSED_PARAM_SENTINEL: - # TODO: 3.0 - warnings.warn( - "do_exit is deprecated and it is going to be removed in a future version.", - DeprecationWarning, - stacklevel=2, - ) - exit = do_exit - if linter.config.clear_cache_post_run: clear_lru_caches() MANAGER.clear_cache() |