Skip to content

Commit

Permalink
STY: Apply ruff/refurb rule FURB167
Browse files Browse the repository at this point in the history
	FURB167 Use of regular expression alias `re.X`
	FURB167 Use of regular expression alias `re.M`
  • Loading branch information
DimitriPapadopoulos committed May 5, 2024
1 parent e5a6350 commit 3848728
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nipype/sphinxext/apidoc/docstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class InterfaceDocstring(NipypeDocstring):
_name_rgx = re.compile(
r"^\s*(:(?P<role>\w+):`(?P<name>[a-zA-Z0-9_.-]+)`|"
r" (?P<name2>[a-zA-Z0-9_.-]+))\s*",
re.X,
re.VERBOSE,
)

def __init__(
Expand Down
2 changes: 1 addition & 1 deletion nipype/sphinxext/plot_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def contains_doctest(text):
return False
except SyntaxError:
pass
r = re.compile(r"^\s*>>>", re.M)
r = re.compile(r"^\s*>>>", re.MULTILINE)
m = r.search(text)
return bool(m)

Expand Down

0 comments on commit 3848728

Please sign in to comment.