src/nitpick/core.py
def enforce_style(self, *partial_names: str, fix=True) -> Iterator[Fuss]:
        """Read the merged style and enforce the rules in it.

        1. Get all root keys from the merged style (every key is a filename, except "nitpick").
        2. For each file name, find the plugin(s) that can handle the file.

        :param partial_names: Names of the files to enforce configs for.
        :param fix: Flag to modify files, if the plugin supports it (default: True).
        :return: Fuss generator.
        """

        # 1.
        for config_key in filter_names(self.project.style_dict, *partial_names):
            config_dict = self.project.style_dict[config_key]
            logger.debug(f"{config_key}: Finding plugins to enforce style")

            # 2.
            info = FileInfo.create(self.project, config_key)
            # pylint: disable=no-member
            for plugin_class in self.project.plugin_manager.hook.can_handle(info=info):  # type: Type[NitpickPlugin]
                yield from plugin_class(info, config_dict, fix).entry_point()
Read the merged style and enforce the rules in it.

        1. Get all root keys from the merged style (every key is a filename, except "nitpick").
        2. For each file name, find the plugin(s) that can handle the file.

        :param partial_names: Names of the files to enforce configs for.
        :param fix: Flag to modify files, if the plugin supports it (default: True).
        :return: Fuss generator.
        
Read the merged style and enforce the rules in it.
1. Get all root keys from the merged style (every key is a filename, except "nitpick").
2. For each file name, find the plugin(s) that can handle the file.
Read the merged style and enforce the rules in it . 1 . Get all root keys from the merged style ( every key is a filename except " nitpick " ) . 2 . For each file name find the plugin ( s ) that can handle the file .
def enforce_style(self, *partial_names: str, fix=True) -> Iterator[Fuss]:
        for config_key in filter_names(self.project.style_dict, *partial_names):
            config_dict = self.project.style_dict[config_key]
            logger.debug(f"{config_key}: Finding plugins to enforce style")
            info = FileInfo.create(self.project, config_key)
            for plugin_class in self.project.plugin_manager.hook.can_handle(info=info):  
                yield from plugin_class(info, config_dict, fix).entry_point()
def enforce_style ( self , * partial_names : str , fix = True ) -> Iterator [ Fuss ] : for config_key in filter_names ( self . project . style_dict , * partial_names ) : config_dict = self . project . style_dict [ config_key ] logger . debug ( f"{config_key}: Finding plugins to enforce style" ) info = FileInfo . create ( self . project , config_key ) for plugin_class in self . project . plugin_manager . hook . can_handle ( info = info ) : yield from plugin_class ( info , config_dict , fix ) . entry_point ( )
Read the merged style and enforce the rules in it.
Read the merged style and enforce the rules in it .
"""Read the merged style and enforce the rules in it.

        1. Get all root keys from the merged style (every key is a filename, except "nitpick").
        2. For each file name, find the plugin(s) that can handle the file.

        :param partial_names: Names of the files to enforce configs for.
        :param fix: Flag to modify files, if the plugin supports it (default: True).
        :return: Fuss generator.
        """ # 1. # 2. # pylint: disable=no-member # type: Type[NitpickPlugin]
None
self
partial_names
str
Names of the files to enforce configs for.
Names of the files to enforce configs for .
fix
Flag to modify files, if the plugin supports it (default: True).
Flag to modify files if the plugin supports it ( default : True ) .