Skip to content

Commit

Permalink
MNT: Bump ruff version
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Mar 5, 2024
1 parent 156455d commit 1b32845
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 0 additions & 1 deletion nibabel/tests/test_image_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
clear_and_catch_warnings,
deprecated_to,
expires,
nullcontext,
)

from .. import (
Expand Down
2 changes: 0 additions & 2 deletions nibabel/tests/test_onetime.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import pytest

from nibabel.onetime import auto_attr, setattr_on_read
from nibabel.testing import deprecated_to, expires

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 1b32845

Please sign in to comment.