class documentation
class OptionsManagerMixIn: (source)
Known subclasses: pylint.config.ConfigurationMixIn
Handle configuration from both a configuration file and command line options.
Method | __init__ |
Undocumented |
Method | add |
Undocumented |
Method | add |
Undocumented |
Method | cb |
Optik callback for option setting. |
Method | generate |
Write a configuration file according to the current configuration into the given stream or stdout. |
Method | global |
Set option on the correct option provider. |
Method | help |
Return the usage string for available options. |
Method | load |
Override configuration according to command line parameters. |
Method | load |
Dispatch values previously read from a configuration file to each option's provider. |
Method | load |
Override configuration according to given parameters. |
Method | load |
Undocumented |
Method | load |
Initialize configuration using default values. |
Method | optik |
Get our personal option definition and return a suitable form for use with optik/optparse. |
Method | read |
Read the configuration file but do not load it (i.e. dispatching values to each option's provider). |
Method | register |
Register an options provider. |
Method | reset |
Undocumented |
Instance Variable | cfgfile |
Undocumented |
Instance Variable | cmdline |
Undocumented |
Instance Variable | options |
Undocumented |
Method | _parse |
Parse and handle errors of a toml configuration file. |
Instance Variable | _all |
Undocumented |
Instance Variable | _maxlevel |
Undocumented |
Instance Variable | _mygroups |
Undocumented |
Instance Variable | _nocallback |
Undocumented |
Instance Variable | _optik |
Undocumented |
Instance Variable | _short |
Undocumented |
def add_optik_option(self, provider:
OptionsProviderMixin
, optikcontainer: Any
, opt: str
, optdict: OptionDict
):
(source)
¶
Undocumented
def add_option_group(self, group_name:
str
, _: Any
, options: Any
, provider: OptionsProviderMixin
):
(source)
¶
Undocumented
def generate_config(self, stream:
TextIO|None
= None, skipsections: tuple[ str, ...]
= ()):
(source)
¶
Write a configuration file according to the current configuration into the given stream or stdout.
def optik_option(self, provider:
OptionsProviderMixin
, opt: str
, optdict: OptionDict
) -> tuple[ list[ str], OptionDict]
:
(source)
¶
Get our personal option definition and return a suitable form for use with optik/optparse.
def register_options_provider(self, provider:
OptionsProviderMixin
, own_group: bool
= True):
(source)
¶
Register an options provider.