Skip to content

Commit 4ffce8d

Browse files
committed
STY: Disable S603
1 parent bf63263 commit 4ffce8d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

fmriprep/cli/workflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def build_boilerplate(config_file, workflow):
215215

216216
config.loggers.cli.info('Generating an HTML version of the citation boilerplate...')
217217
try:
218-
check_call(cmd, timeout=10) # noqa: S603
218+
check_call(cmd, timeout=10)
219219
except (FileNotFoundError, CalledProcessError, TimeoutExpired):
220220
config.loggers.cli.warning('Could not generate CITATION.html file:\n%s', ' '.join(cmd))
221221

@@ -232,6 +232,6 @@ def build_boilerplate(config_file, workflow):
232232
]
233233
config.loggers.cli.info('Generating a LaTeX version of the citation boilerplate...')
234234
try:
235-
check_call(cmd, timeout=10) # noqa: S603
235+
check_call(cmd, timeout=10)
236236
except (FileNotFoundError, CalledProcessError, TimeoutExpired):
237237
config.loggers.cli.warning('Could not generate CITATION.tex file:\n%s', ' '.join(cmd))

fmriprep/utils/bids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def validate_input_dir(exec_env, bids_dir, participant_label, need_T1w=True):
233233
temp.write(json.dumps(validator_config_dict))
234234
temp.flush()
235235
try:
236-
subprocess.check_call(['bids-validator', str(bids_dir), '-c', temp.name]) # noqa: S603, S607
236+
subprocess.check_call(['bids-validator', str(bids_dir), '-c', temp.name]) # noqa: S607
237237
except FileNotFoundError:
238238
print('bids-validator does not appear to be installed', file=sys.stderr)
239239

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ extend-select = [
176176
extend-ignore = [
177177
"S311", # We are not using random for cryptographic purposes
178178
"ISC001",
179+
"S603",
179180
]
180181

181182
[tool.ruff.lint.flake8-quotes]

0 commit comments

Comments
 (0)