summaryrefslogtreecommitdiff
path: root/pylint/lint
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2023-03-08 20:53:50 +0100
committerGitHub <noreply@github.com>2023-03-08 20:53:50 +0100
commit3318aa0c5877abd9e9d2361f8a21b8880b7a052d (patch)
treee3c219f0040b635378391803319f1de9f147847d /pylint/lint
parentac5f0a4176532a459f0c4c0b6289c43f94994489 (diff)
downloadpylint-git-3318aa0c5877abd9e9d2361f8a21b8880b7a052d.tar.gz
Remove all old code related to ``optparse`` config parsing. (#8405)
* Remove all old config parsing code * Temporarily disable a test
Diffstat (limited to 'pylint/lint')
-rw-r--r--pylint/lint/pylinter.py19
-rw-r--r--pylint/lint/utils.py2
2 files changed, 1 insertions, 20 deletions
diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py
index 863076f8f..b35867eae 100644
--- a/pylint/lint/pylinter.py
+++ b/pylint/lint/pylinter.py
@@ -346,25 +346,6 @@ class PyLinter(
self.register_checker(self)
- @property
- def option_groups(self) -> tuple[tuple[str, str], ...]:
- # TODO: 3.0: Remove deprecated attribute
- warnings.warn(
- "The option_groups attribute has been deprecated and will be removed in pylint 3.0",
- DeprecationWarning,
- stacklevel=2,
- )
- return self._option_groups
-
- @option_groups.setter
- def option_groups(self, value: tuple[tuple[str, str], ...]) -> None:
- warnings.warn(
- "The option_groups attribute has been deprecated and will be removed in pylint 3.0",
- DeprecationWarning,
- stacklevel=2,
- )
- self._option_groups = value
-
def load_default_plugins(self) -> None:
checkers.initialize(self)
reporters.initialize(self)
diff --git a/pylint/lint/utils.py b/pylint/lint/utils.py
index 98fb8087a..950c94b85 100644
--- a/pylint/lint/utils.py
+++ b/pylint/lint/utils.py
@@ -12,7 +12,7 @@ from collections.abc import Iterator, Sequence
from datetime import datetime
from pathlib import Path
-from pylint.config import PYLINT_HOME
+from pylint.constants import PYLINT_HOME
from pylint.lint.expand_modules import discover_package_path