Skip to content

Commit

Permalink
MNT: Use a set literal, not a list literal
Browse files Browse the repository at this point in the history
No need to pass a list literal to set(), directly use a set literal.
  • Loading branch information
DimitriPapadopoulos authored and effigies committed Nov 9, 2023
1 parent 2019064 commit e671d36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wrapper/smriprep_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ def _get_posargs(usage):

# Make sure we're not clobbering options we don't mean to
overlap = set(w_flags).intersection(t_flags)
expected_overlap = set(
["h", "version", "w", "fs-license-file", "use-plugin", "fs-subjects-dir"]
)
expected_overlap = {
"h", "version", "w", "fs-license-file", "use-plugin", "fs-subjects-dir"
}

assert overlap == expected_overlap, "Clobbering options: {}".format(
", ".join(overlap - expected_overlap)
Expand Down

0 comments on commit e671d36

Please sign in to comment.