"""Settings for reformater.""" # pylint: disable=C0301,C0103 # flake8: noqa # default indentation indent = " " break_html_tags = ["a", "abbr"] # indicates tags whose contents should not be formatted ignored_tag_opening = r"|\*}|\?>|]*?)((?:\n[^>]+?)+?)(/?\>)" ignored_attributes = [ "data-json", ] ignored_paths = r"(?:\.tox|\.venv|node_modules|_build)" start_template_tags = ( r"{% ?(?:if|for|block|spaceless|compress|load|assets|addto|language)[^}]+?%}" ) break_template_tags = [ r"{% ?(?:if|end|for|block|endblock|else|spaceless|compress|load|include|assets|addto|language)[^}]+?%}", ] unformated_html_tags = ["script"] ignored_blocks = [ r"<(script|style|pre).*?(?:%s).*?", r"", r"{\*.*?(?:%s).*?\*}", r"{#.*?(?:%s).*?#}", r"<\?php.*?(?:%s).*?\?>", ] ignored_inline_blocks = [ r"", r"{\*.*?\*}", r"{#.*?#}", r"<\?php.*?\?>", ] single_line_html_tags = [ "button", "a", "h1", "h2", "h3", "h4", "h5", "h6", "td", "th", "strong", "em", "icon", "span", "title", "link", "path", "label", "textarea", ] always_single_line_html_tags = ["link"] single_line_template_tags = ["if", "for", "block"] break_html_tags = [ "a", "abbr", "acronym", "address", "applet", "area", "article", "aside", "audio", "b", "base", "basefont", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "font", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hr", "html", "i", "iframe", "icon", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "meta", "meter", "nav", "noframes", "noscript", "object", "ol", "optgroup", "option", "output", "p", "path", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strike", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "tt", "u", "ul", "var", "video", "wbr", ]