Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ repos:
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.4
rev: v0.16.1
hooks:
- id: ruff-check
args: [ --fix, --show-fixes ]
- id: ruff-format
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.22.0
rev: v1.29.0
hooks:
- id: zizmor
- repo: local
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@

sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'sphinxext')))

from github_link import make_linkcode_resolve # noqa: E402
from github_link import make_linkcode_resolve

os.environ['NO_ET'] = '1'

sys.path.insert(0, os.path.abspath('../wrapper'))

# -- Project information -----------------------------------------------------
project = _package
copyright = _copyright # noqa: A001
copyright = _copyright
author = 'The sMRIPrep Developers'

# The short X.Y version
Expand Down
4 changes: 2 additions & 2 deletions src/smriprep/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ def build_workflow(opts, retval):
str(log_dir / 'CITATION.html'),
]
try:
check_call(cmd, timeout=10) # noqa: S603
check_call(cmd, timeout=10)
except (FileNotFoundError, CalledProcessError, TimeoutExpired):
logger.warning('Could not generate CITATION.html file:\n%s', ' '.join(cmd))

Expand All @@ -760,7 +760,7 @@ def build_workflow(opts, retval):
str(log_dir / 'CITATION.tex'),
]
try:
check_call(cmd, timeout=10) # noqa: S603
check_call(cmd, timeout=10)
except (FileNotFoundError, CalledProcessError, TimeoutExpired):
logger.warning('Could not generate CITATION.tex file:\n%s', ' '.join(cmd))
else:
Expand Down
2 changes: 1 addition & 1 deletion src/smriprep/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def fs_isRunning(subjects_dir, subject_id, mtime_tol=86400, logger=None):
for fl in isrunning:
fl.unlink()
if logger:
logger.warn(f'Removed "IsRunning*" files found under {subj_dir}')
logger.warning(f'Removed "IsRunning*" files found under {subj_dir}')
return subjects_dir


Expand Down
Loading