src/nitpick/plugins/ini.py
def init(self):
        """Post initialization after the instance was created."""
        self.updater = ConfigUpdater()
        self.comma_separated_values = set(self.nitpick_file_dict.get(COMMA_SEPARATED_VALUES, []))

        if not self.needs_top_section:
            return
        if all(isinstance(v, dict) for v in self.expected_config.values()):
            return

        new_config = OrderedDict({TOP_SECTION: OrderedDict()})
        for key, value in self.expected_config.items():
            if isinstance(value, dict):
                new_config[key] = value
                continue
            new_config[TOP_SECTION][key] = value
        self.expected_config = new_config
Post initialization after the instance was created.
Post initialization after the instance was created.
Post initialization after the instance was created .
def init(self):
        self.updater = ConfigUpdater()
        self.comma_separated_values = set(self.nitpick_file_dict.get(COMMA_SEPARATED_VALUES, []))
        if not self.needs_top_section:
            return
        if all(isinstance(v, dict) for v in self.expected_config.values()):
            return
        new_config = OrderedDict({TOP_SECTION: OrderedDict()})
        for key, value in self.expected_config.items():
            if isinstance(value, dict):
                new_config[key] = value
                continue
            new_config[TOP_SECTION][key] = value
        self.expected_config = new_config
def init ( self ) : self . updater = ConfigUpdater ( ) self . comma_separated_values = set ( self . nitpick_file_dict . get ( COMMA_SEPARATED_VALUES , [ ] ) ) if not self . needs_top_section : return if all ( isinstance ( v , dict ) for v in self . expected_config . values ( ) ) : return new_config = OrderedDict ( { TOP_SECTION : OrderedDict ( ) } ) for key , value in self . expected_config . items ( ) : if isinstance ( value , dict ) : new_config [ key ] = value continue new_config [ TOP_SECTION ] [ key ] = value self . expected_config = new_config
Post initialization after the instance was created.
Post initialization after the instance was created .
"""Post initialization after the instance was created."""
self