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] committed Dec 11, 2024
1 parent f4ec1a9 commit a82427d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sphinx_needs/directives/list2need.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ def run(self) -> Sequence[nodes.Node]:
if global_options:
if "options" not in list_need:
list_need["options"] = {}
global_options_items = re.findall(r'([^=,]+)=["\']([^"\']+)["\']', global_options)
global_options_items = re.findall(
r'([^=,]+)=["\']([^"\']+)["\']', global_options
)

for key, value in global_options_items:
current_options = list_need["options"].get(key.strip(), "")
Expand Down

0 comments on commit a82427d

Please sign in to comment.