Skip to content

Commit

Permalink
STY: Apply ruff/pycodestyle rule E714
Browse files Browse the repository at this point in the history
E714 Test for object identity should be `is not`
  • Loading branch information
DimitriPapadopoulos committed Oct 6, 2024
1 parent ccff8d9 commit 5f6d492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nipype/pipeline/plugins/dagman.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, **kwargs):
):
if (
"plugin_args" in kwargs
and not kwargs["plugin_args"] is None
and kwargs["plugin_args"] is not None
and id_ in kwargs["plugin_args"]
):
if id_ == "wrapper_cmd":
Expand All @@ -89,7 +89,7 @@ def __init__(self, **kwargs):
val = self._get_str_or_file(kwargs["plugin_args"][id_])
setattr(self, var, val)
# TODO remove after some time
if "plugin_args" in kwargs and not kwargs["plugin_args"] is None:
if "plugin_args" in kwargs and kwargs["plugin_args"] is not None:
plugin_args = kwargs["plugin_args"]
if "template" in plugin_args:
warn(
Expand Down

0 comments on commit 5f6d492

Please sign in to comment.