src/nitpick/exceptions.py
def pre_commit_without_dash(path_from_root: str) -> bool:
        """The pre-commit config should start with a dot on the config file."""
        from nitpick.plugins.pre_commit import PreCommitPlugin  # pylint: disable=import-outside-toplevel

        if path_from_root == PreCommitPlugin.filename[1:]:
            warnings.warn(
                f'The section name for dotfiles should start with a dot: [".{path_from_root}"]', DeprecationWarning
            )
            return True

        return False
The pre-commit config should start with a dot on the config file.
The pre-commit config should start with a dot on the config file.
The pre - commit config should start with a dot on the config file .
def pre_commit_without_dash(path_from_root: str) -> bool:
        from nitpick.plugins.pre_commit import PreCommitPlugin  
        if path_from_root == PreCommitPlugin.filename[1:]:
            warnings.warn(
                f'The section name for dotfiles should start with a dot: [".{path_from_root}"]', DeprecationWarning
            )
            return True
        return False
def pre_commit_without_dash ( path_from_root : str ) -> bool : from nitpick . plugins . pre_commit import PreCommitPlugin if path_from_root == PreCommitPlugin . filename [ 1 : ] : warnings . warn ( f'The section name for dotfiles should start with a dot: [".{path_from_root}"]' , DeprecationWarning ) return True return False
The pre-commit config should start with a dot on the config file.
The pre - commit config should start with a dot on the config file .
"""The pre-commit config should start with a dot on the config file.""" # pylint: disable=import-outside-toplevel
path_from_root
str