style: include new linter rules and fix files

This commit is contained in:
Tim Grelka
2025-07-03 17:23:46 +02:00
parent 433f4ba4ef
commit 09331b3a54
20 changed files with 64 additions and 56 deletions
+14 -14
View File
@@ -76,17 +76,17 @@ def test_thematic_break_latex():
@pytest.mark.latex
def test_tag_latex():
assertions = {
"<margin>\nFoo\n</margin>": "\Margin{\nFoo\n}",
"<danger>\nFoo\n</danger>": "\MarginDanger{\nFoo\n}",
"<warning>\nFoo\n</warning>": "\MarginWarning{\nFoo\n}",
"<attention>\nFoo\n</attention>": "\MarginAttention{\nFoo\n}",
"<tip>\nFoo\n</tip>": "\MarginTip{\nFoo\n}",
"<webtip>\nFoo\n</webtip>": "\WebTip{\nFoo\n}",
"<unit>\nFoo\n</unit>": "\MarginUnit{\nFoo\n}",
"<indepth>\nFoo\n</indepth>": "\MarginInDepth{\nFoo\n}",
"<webindepth>\nFoo\n</webindepth>": "\MarginWebInDepth{\nFoo\n}",
"<webmargin>\nFoo\n</webmargin>": "\WebMargin{\nFoo\n}",
"<fullwidth>\nFoo\n</fullwidth>": "\FullWidth{\nFoo\n}",
"<margin>\nFoo\n</margin>": "\\Margin{\nFoo\n}",
"<danger>\nFoo\n</danger>": "\\MarginDanger{\nFoo\n}",
"<warning>\nFoo\n</warning>": "\\MarginWarning{\nFoo\n}",
"<attention>\nFoo\n</attention>": "\\MarginAttention{\nFoo\n}",
"<tip>\nFoo\n</tip>": "\\MarginTip{\nFoo\n}",
"<webtip>\nFoo\n</webtip>": "\\WebTip{\nFoo\n}",
"<unit>\nFoo\n</unit>": "\\MarginUnit{\nFoo\n}",
"<indepth>\nFoo\n</indepth>": "\\MarginInDepth{\nFoo\n}",
"<webindepth>\nFoo\n</webindepth>": "\\MarginWebInDepth{\nFoo\n}",
"<webmargin>\nFoo\n</webmargin>": "\\WebMargin{\nFoo\n}",
"<fullwidth>\nFoo\n</fullwidth>": "\\FullWidth{\nFoo\n}",
"<latexonly>\nFoo\n</latexonly>": "\nFoo\n",
"<webonly>\nFoo\n</webonly>": "",
}
@@ -98,9 +98,9 @@ def test_tag_latex():
@pytest.mark.latex
def test_thematic_break_and_tag_latex():
assertions = {
"---\n<margin>\nFoo\n</margin>": "\Margin{\nFoo\n}",
"---\n<margin>\nFoo\n</margin>\n<margin>\nFoo\n</margin>": "\Margin{\nFoo\n}\Margin{\nFoo\n}",
"---\n<margin>\nFoo\n</margin>\n---\n<margin>\nFoo\n</margin>": "\Margin{\nFoo\n}\Margin{\nFoo\n}",
"---\n<margin>\nFoo\n</margin>": "\\Margin{\nFoo\n}",
"---\n<margin>\nFoo\n</margin>\n<margin>\nFoo\n</margin>": "\\Margin{\nFoo\n}\\Margin{\nFoo\n}",
"---\n<margin>\nFoo\n</margin>\n---\n<margin>\nFoo\n</margin>": "\\Margin{\nFoo\n}\\Margin{\nFoo\n}",
}
for assertion in assertions: