Skip to content

Commit 29b58c7

Browse files
committed
Remove un-needed noqa: S308 comments
This was reported by ruff in pre-commit
1 parent 02dba13 commit 29b58c7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tbx/core/blocks.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -607,13 +607,13 @@ def featured_case_study_logo(self):
607607
class NumericResultBlock(blocks.StructBlock):
608608
label = blocks.CharBlock(
609609
max_length=255,
610-
help_text=mark_safe( # noqa: S308
610+
help_text=mark_safe(
611611
"Short text to describe the change e.g. <strong>Raised over</strong>"
612612
),
613613
)
614614
headline_number = blocks.CharBlock(
615615
max_length=255,
616-
help_text=mark_safe("A numerical value e.g. <strong>£600k</strong>"), # noqa: S308
616+
help_text=mark_safe("A numerical value e.g. <strong>£600k</strong>"),
617617
)
618618

619619

@@ -1031,16 +1031,16 @@ class Meta:
10311031
class NumericStatisticsBlock(blocks.StructBlock):
10321032
headline_number = blocks.CharBlock(
10331033
max_length=255,
1034-
help_text=mark_safe("A numerical value e.g. <strong>30%</strong>"), # noqa: S308
1034+
help_text=mark_safe("A numerical value e.g. <strong>30%</strong>"),
10351035
)
10361036
description = blocks.TextBlock(
1037-
help_text=mark_safe( # noqa: S308
1037+
help_text=mark_safe(
10381038
"Text to describe the change e.g. <strong>Reduction in accessibility errors</strong>"
10391039
)
10401040
)
10411041
further_details = blocks.TextBlock(
10421042
required=False,
1043-
help_text=mark_safe( # noqa: S308
1043+
help_text=mark_safe(
10441044
"Text to give more information, e.g. <strong>Over 80% of pages</strong>"
10451045
),
10461046
)
@@ -1083,13 +1083,13 @@ class Meta:
10831083
class TextualStatisticsBlock(blocks.StructBlock):
10841084
headline_text = blocks.CharBlock(
10851085
max_length=255,
1086-
help_text=mark_safe( # noqa: S308
1086+
help_text=mark_safe(
10871087
"Describe a general improvement, e.g. <strong>Reduction in accessibility issues</strong>"
10881088
),
10891089
)
10901090
further_details = blocks.TextBlock(
10911091
required=False,
1092-
help_text=mark_safe( # noqa: S308
1092+
help_text=mark_safe(
10931093
"Text to give more information, e.g. <strong>Over 80% of pages</strong>"
10941094
),
10951095
)

tbx/core/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def partner_logos(self):
216216
"hero_introduction",
217217
heading="Introduction",
218218
# mark_safe needed so the HTML tags aren't escaped
219-
help_text=mark_safe( # noqa: S308
219+
help_text=mark_safe(
220220
"Use bold to mark links as"
221221
' <span style="color:#EE5276">pink</span>,'
222222
" and use italics to mark links as"

0 commit comments

Comments
 (0)