10000 STY: Apply ruff/pycodestyle rules (E) by DimitriPapadopoulos · Pull Request #3689 · nipy/nipype · GitHub
[go: up one dir, main page]

Skip to content

STY: Apply ruff/pycodestyle rules (E) #3689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
STY: Apply ruff/pycodestyle rule E714
E714 Test for object identity should be `is not`
  • Loading branch information
DimitriPapadopoulos committed Oct 6, 2024
commit 5f6d4920f3f3689e875c58e995d27f885aaeda86
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