diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ef2d891fb..d35d28757 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - id: check-merge-conflict - id: check-vcs-permalinks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.9 + rev: v0.3.0 hooks: - id: ruff args: [--fix, --show-fix, --exit-non-zero-on-fix] diff --git a/nibabel/tests/test_image_api.py b/nibabel/tests/test_image_api.py index 86c04985f..589876232 100644 --- a/nibabel/tests/test_image_api.py +++ b/nibabel/tests/test_image_api.py @@ -50,7 +50,6 @@ clear_and_catch_warnings, deprecated_to, expires, - nullcontext, ) from .. import ( diff --git a/nibabel/tests/test_onetime.py b/nibabel/tests/test_onetime.py index b22a4ef3e..4d7294927 100644 --- a/nibabel/tests/test_onetime.py +++ b/nibabel/tests/test_onetime.py @@ -1,5 +1,3 @@ -import pytest - from nibabel.onetime import auto_attr, setattr_on_read from nibabel.testing import deprecated_to, expires diff --git a/tox.ini b/tox.ini index 4e9b220ce..2e6a2449e 100644 --- a/tox.ini +++ b/tox.ini @@ -139,10 +139,10 @@ commands = description = Check our style guide labels = check deps = - ruff>=0.1.9 + ruff>=0.3.0 skip_install = true commands = - ruff --diff nibabel + ruff check --diff nibabel ruff format --diff nibabel [testenv:style-fix]