diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-05-01 19:56:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-01 19:56:15 +0200 |
commit | 76b853836801188667cf47f45b45493ef27d178c (patch) | |
tree | b7e842c4b2b1aefde1740f5d77f3b4b77578f742 /pylint/config | |
parent | e1769bd44631374eab4f9176f51cc64a7051f316 (diff) | |
download | pylint-git-76b853836801188667cf47f45b45493ef27d178c.tar.gz |
Disable fixme for internal uses before we make it optional in #3512 (#6482)
Diffstat (limited to 'pylint/config')
-rw-r--r-- | pylint/config/arguments_manager.py | 9 | ||||
-rw-r--r-- | pylint/config/arguments_provider.py | 10 | ||||
-rw-r--r-- | pylint/config/callback_actions.py | 1 | ||||
-rw-r--r-- | pylint/config/configuration_mixin.py | 2 | ||||
-rw-r--r-- | pylint/config/find_default_config_files.py | 1 | ||||
-rw-r--r-- | pylint/config/option.py | 2 | ||||
-rw-r--r-- | pylint/config/option_manager_mixin.py | 2 | ||||
-rw-r--r-- | pylint/config/option_parser.py | 2 | ||||
-rw-r--r-- | pylint/config/options_provider_mixin.py | 2 |
9 files changed, 14 insertions, 17 deletions
diff --git a/pylint/config/arguments_manager.py b/pylint/config/arguments_manager.py index 7ceb04804..f5bd88e3e 100644 --- a/pylint/config/arguments_manager.py +++ b/pylint/config/arguments_manager.py @@ -80,7 +80,6 @@ class _ArgumentsManager: self._option_dicts: dict[str, OptionDict] = {} """All option dictionaries that have been registered.""" - # pylint: disable=fixme # TODO: 3.0: Remove deprecated attributes introduced to keep API # parity with optparse. Until '_maxlevel' with warnings.catch_warnings(): @@ -107,7 +106,7 @@ class _ArgumentsManager: @property def options_providers(self) -> list[ConfigProvider]: - # TODO: 3.0: Remove deprecated attribute. # pylint: disable=fixme + # TODO: 3.0: Remove deprecated attribute. warnings.warn( "options_providers has been deprecated. It will be removed in pylint 3.0.", DeprecationWarning, @@ -629,7 +628,7 @@ class _ArgumentsManager: def cb_set_provider_option(self, option, opt, value, parser): # pragma: no cover """DEPRECATED: Optik callback for option setting.""" - # TODO: 3.0: Remove deprecated method. # pylint: disable=fixme + # TODO: 3.0: Remove deprecated method. warnings.warn( "cb_set_provider_option has been deprecated. It will be removed in pylint 3.0.", DeprecationWarning, @@ -647,7 +646,7 @@ class _ArgumentsManager: def global_set_option(self, opt: str, value: Any) -> None: # pragma: no cover """DEPRECATED: Set option on the correct option provider.""" - # TODO: 3.0: Remove deprecated method. # pylint: disable=fixme + # TODO: 3.0: Remove deprecated method. warnings.warn( "global_set_option has been deprecated. You can use _arguments_manager.set_option " "or linter.set_option to set options on the global configuration object.", @@ -734,7 +733,7 @@ class _ArgumentsManager: optdict: None | str | OptionDict = "default_value", ) -> None: """Set an option on the namespace object.""" - # TODO: 3.0: Remove deprecated arguments. # pylint: disable=fixme + # TODO: 3.0: Remove deprecated arguments. if action != "default_value": warnings.warn( "The 'action' argument has been deprecated. You can use set_option " diff --git a/pylint/config/arguments_provider.py b/pylint/config/arguments_provider.py index 377f477f9..e07f44af5 100644 --- a/pylint/config/arguments_provider.py +++ b/pylint/config/arguments_provider.py @@ -20,7 +20,7 @@ class UnsupportedAction(Exception): """Raised by set_option when it doesn't know what to do for an action.""" def __init__(self, *args: object) -> None: - # TODO: 3.0: Remove deprecated exception # pylint: disable=fixme + # TODO: 3.0: Remove deprecated exception warnings.warn( "UnsupportedAction has been deprecated and will be removed in pylint 3.0", DeprecationWarning, @@ -50,7 +50,7 @@ class _ArgumentsProvider: @property def level(self) -> int: - # TODO: 3.0: Remove deprecated attribute # pylint: disable=fixme + # TODO: 3.0: Remove deprecated attribute warnings.warn( "The level attribute has been deprecated. It was used to display the checker in the help or not," " and everything is displayed in the help now. It will be removed in pylint 3.0.", @@ -60,7 +60,7 @@ class _ArgumentsProvider: @level.setter def level(self, value: int) -> None: - # TODO: 3.0: Remove deprecated attribute # pylint: disable=fixme + # TODO: 3.0: Remove deprecated attribute warnings.warn( "Setting the level attribute has been deprecated. It was used to display the checker in the help or not," " and everything is displayed in the help now. It will be removed in pylint 3.0.", @@ -70,7 +70,7 @@ class _ArgumentsProvider: @property def config(self) -> argparse.Namespace: - # TODO: 3.0: Remove deprecated attribute # pylint: disable=fixme + # TODO: 3.0: Remove deprecated attribute warnings.warn( "The checker-specific config attribute has been deprecated. Please use " "'linter.config' to access the global configuration object.", @@ -124,7 +124,7 @@ class _ArgumentsProvider: # pylint: disable-next=unused-argument def set_option(self, optname, value, action=None, optdict=None): # pragma: no cover """DEPRECATED: Method called to set an option (registered in the options list).""" - # TODO: 3.0: Remove deprecated method. # pylint: disable=fixme + # TODO: 3.0: Remove deprecated method. warnings.warn( "set_option has been deprecated. You can use _arguments_manager.set_option " "or linter.set_option to set options on the global configuration object.", diff --git a/pylint/config/callback_actions.py b/pylint/config/callback_actions.py index 761995399..e89879a5e 100644 --- a/pylint/config/callback_actions.py +++ b/pylint/config/callback_actions.py @@ -261,7 +261,6 @@ class _GenerateRCFileAction(_AccessRunObjectAction): values: str | Sequence[Any] | None, option_string: str | None = "--generate-rcfile", ) -> None: - # pylint: disable-next=fixme # TODO: 2.14: Deprecate this after discussion about this removal has been completed. with warnings.catch_warnings(): warnings.filterwarnings("ignore", category=DeprecationWarning) diff --git a/pylint/config/configuration_mixin.py b/pylint/config/configuration_mixin.py index e9f0d88ff..7854ff733 100644 --- a/pylint/config/configuration_mixin.py +++ b/pylint/config/configuration_mixin.py @@ -14,7 +14,7 @@ class ConfigurationMixIn(OptionsManagerMixIn, OptionsProviderMixIn): """ def __init__(self, *args, **kwargs): - # TODO: 3.0: Remove deprecated class # pylint: disable=fixme + # TODO: 3.0: Remove deprecated class warnings.warn( "ConfigurationMixIn has been deprecated and will be removed in pylint 3.0", DeprecationWarning, diff --git a/pylint/config/find_default_config_files.py b/pylint/config/find_default_config_files.py index c09576f83..a565a8c27 100644 --- a/pylint/config/find_default_config_files.py +++ b/pylint/config/find_default_config_files.py @@ -78,7 +78,6 @@ def find_default_config_files() -> Iterator[Path]: def find_pylintrc() -> str | None: """Search the pylint rc file and return its path if it finds it, else return None.""" - # pylint: disable-next=fixme # TODO: 3.0: Remove deprecated function warnings.warn( "find_pylintrc and the PYLINTRC constant have been deprecated. " diff --git a/pylint/config/option.py b/pylint/config/option.py index 255450977..5043fe765 100644 --- a/pylint/config/option.py +++ b/pylint/config/option.py @@ -172,7 +172,7 @@ class Option(optparse.Option): TYPE_CHECKER["py_version"] = _py_version_validator def __init__(self, *opts, **attrs): - # TODO: 3.0: Remove deprecated class # pylint: disable=fixme + # TODO: 3.0: Remove deprecated class warnings.warn( "Option has been deprecated and will be removed in pylint 3.0", DeprecationWarning, diff --git a/pylint/config/option_manager_mixin.py b/pylint/config/option_manager_mixin.py index ea5ebbeaf..0111263a3 100644 --- a/pylint/config/option_manager_mixin.py +++ b/pylint/config/option_manager_mixin.py @@ -64,7 +64,7 @@ class OptionsManagerMixIn: """Handle configuration from both a configuration file and command line options.""" def __init__(self, usage): - # TODO: 3.0: Remove deprecated class # pylint: disable=fixme + # TODO: 3.0: Remove deprecated class warnings.warn( "OptionsManagerMixIn has been deprecated and will be removed in pylint 3.0", DeprecationWarning, diff --git a/pylint/config/option_parser.py b/pylint/config/option_parser.py index bbed68036..b58fad3a4 100644 --- a/pylint/config/option_parser.py +++ b/pylint/config/option_parser.py @@ -19,7 +19,7 @@ def _level_options(group, outputlevel): class OptionParser(optparse.OptionParser): def __init__(self, option_class, *args, **kwargs): - # TODO: 3.0: Remove deprecated class # pylint: disable=fixme + # TODO: 3.0: Remove deprecated class warnings.warn( "OptionParser has been deprecated and will be removed in pylint 3.0", DeprecationWarning, diff --git a/pylint/config/options_provider_mixin.py b/pylint/config/options_provider_mixin.py index c7c2be9e9..5b20a290f 100644 --- a/pylint/config/options_provider_mixin.py +++ b/pylint/config/options_provider_mixin.py @@ -23,7 +23,7 @@ class OptionsProviderMixIn: level = 0 def __init__(self): - # TODO: 3.0: Remove deprecated class # pylint: disable=fixme + # TODO: 3.0: Remove deprecated class warnings.warn( "OptionsProviderMixIn has been deprecated and will be removed in pylint 3.0", DeprecationWarning, |