Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and chrisjsewell committed Oct 4, 2024
1 parent d45e77d commit 550ff31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sphinx_needs/directives/list2need.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def run(self) -> Sequence[nodes.Node]:
list_need["title"] = OPTION_AREA_REGEX.sub("", list_need["title"])
list_need["content"] = OPTION_AREA_REGEX.sub("", list_need["content"])

# Add tags defined at list level (if exists) to the ones potentially defined in the content
# Add tags defined at list level (if exists) to the ones potentially defined in the content
if tags is not None:
if "options" not in list_need:
list_need["options"] = {}
Expand Down
5 changes: 1 addition & 4 deletions tests/test_list2need.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
def test_doc_list2need_html(test_app):
app = test_app
app.build()

options_html = Path(app.outdir, "options.html").read_text()

assert '<span class="needs_label">status: </span>' in options_html
Expand Down Expand Up @@ -48,6 +48,3 @@ def test_doc_list2need_html(test_app):
'href="#NEED-B" title="NEED-C">NEED-B</a></span></span></div>'
in links_down_html
)



0 comments on commit 550ff31

Please sign in to comment.