File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ def create_card( # noqa: PLR0915
85
85
# TODO better degradation for latex
86
86
card_classes = ["sd-card" , "sd-sphinx-override" ]
87
87
if "width" in options :
88
- card_classes += [f' sd-w-{ options [" width" ].rstrip ("%" ) } ' ]
88
+ card_classes += [f" sd-w-{ options [' width' ].rstrip ('%' ) } " ]
89
89
card_classes += options .get ("margin" , ["sd-mb-3" ])
90
90
card_classes += [f"sd-shadow-{ options .get ('shadow' , 'sm' )} " ]
91
91
if "link" in options :
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ def run_with_defaults(self) -> list[nodes.Node]:
191
191
+ self .options .get ("margin" , [])
192
192
+ self .options .get ("padding" , [])
193
193
+ (
194
- [f' sd-align-major-{ self .options [" child-align" ] } ' ]
194
+ [f" sd-align-major-{ self .options [' child-align' ] } " ]
195
195
if "child-align" in self .options
196
196
else []
197
197
)
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def test_snippets_rst(
45
45
doctree .attributes .pop ("translation_progress" , None ) # added in sphinx 7.1
46
46
file_regression .check (
47
47
doctree .pformat (),
48
- basename = f"snippet_pre_{ path .name [:- len (path .suffix )]} " ,
48
+ basename = f"snippet_pre_{ path .name [: - len (path .suffix )]} " ,
49
49
extension = ".xml" ,
50
50
encoding = "utf8" ,
51
51
)
@@ -70,7 +70,7 @@ def test_snippets_myst(
70
70
doctree .attributes .pop ("translation_progress" , None ) # added in sphinx 7.1
71
71
file_regression .check (
72
72
doctree .pformat (),
73
- basename = f"snippet_pre_{ path .name [:- len (path .suffix )]} " ,
73
+ basename = f"snippet_pre_{ path .name [: - len (path .suffix )]} " ,
74
74
extension = ".xml" ,
75
75
encoding = "utf8" ,
76
76
)
@@ -94,7 +94,7 @@ def test_snippets_rst_post(
94
94
doctree .attributes .pop ("translation_progress" , None ) # added in sphinx 7.1
95
95
file_regression .check (
96
96
doctree .pformat (),
97
- basename = f"snippet_post_{ path .name [:- len (path .suffix )]} " ,
97
+ basename = f"snippet_post_{ path .name [: - len (path .suffix )]} " ,
98
98
extension = ".xml" ,
99
99
encoding = "utf8" ,
100
100
)
@@ -119,7 +119,7 @@ def test_snippets_myst_post(
119
119
doctree .attributes .pop ("translation_progress" , None ) # added in sphinx 7.1
120
120
file_regression .check (
121
121
doctree .pformat (),
122
- basename = f"snippet_post_{ path .name [:- len (path .suffix )]} " ,
122
+ basename = f"snippet_post_{ path .name [: - len (path .suffix )]} " ,
123
123
extension = ".xml" ,
124
124
encoding = "utf8" ,
125
125
)
You can’t perform that action at this time.
0 commit comments