src/nitpick/exceptions.py
def jsonfile_section(style_errors: Dict[str, Any]) -> bool:
        """The [nitpick.JSONFile] is not needed anymore; JSON files are now detected by the extension."""
        has_nitpick_jsonfile_section = style_errors.get(PROJECT_NAME, {}).pop("JSONFile", None)
        if has_nitpick_jsonfile_section:
            style_errors.pop(PROJECT_NAME)
            warnings.warn(
                "The [nitpick.JSONFile] section is not needed anymore; just declare your JSON files directly",
                DeprecationWarning,
            )
            return True
        return False
The [nitpick.JSONFile] is not needed anymore; JSON files are now detected by the extension.
The [nitpick.JSONFile] is not needed anymore; JSON files are now detected by the extension.
The [ nitpick . JSONFile ] is not needed anymore ; JSON files are now detected by the extension .
def jsonfile_section(style_errors: Dict[str, Any]) -> bool:
        has_nitpick_jsonfile_section = style_errors.get(PROJECT_NAME, {}).pop("JSONFile", None)
        if has_nitpick_jsonfile_section:
            style_errors.pop(PROJECT_NAME)
            warnings.warn(
                "The [nitpick.JSONFile] section is not needed anymore; just declare your JSON files directly",
                DeprecationWarning,
            )
            return True
        return False
def jsonfile_section ( style_errors : Dict [ str , Any ] ) -> bool : has_nitpick_jsonfile_section = style_errors . get ( PROJECT_NAME , { } ) . pop ( "JSONFile" , None ) if has_nitpick_jsonfile_section : style_errors . pop ( PROJECT_NAME ) warnings . warn ( "The [nitpick.JSONFile] section is not needed anymore; just declare your JSON files directly" , DeprecationWarning , ) return True return False
The [nitpick.JSONFile] is not needed anymore; JSON files are now detected by the extension.
The [ nitpick . JSONFile ] is not needed anymore ; JSON files are now detected by the extension .
"""The [nitpick.JSONFile] is not needed anymore; JSON files are now detected by the extension."""
style_errors
Dict[str, Any]