Source code for nitpick.config

"""Special configurations."""

from attr import Factory, define  # type: ignore[attr-defined]

from nitpick.typedefs import JsonDict


[docs]@define class OverridableConfig: # pylint: disable=too-few-public-methods """Configs formed from defaults from the plugin that can be overridden by the style.""" from_plugin: JsonDict = Factory(dict) from_style: JsonDict = Factory(dict) value: JsonDict = Factory(dict)
[docs]@define class SpecialConfig: # pylint: disable=too-few-public-methods """Special configurations for plugins.""" list_keys: OverridableConfig = Factory(OverridableConfig)