Skip to content

Commit

Permalink
STY: Apply ruff/pygrep-hooks rule PGH004
Browse files Browse the repository at this point in the history
PGH004 Use specific rule codes when using `noqa`
  • Loading branch information
DimitriPapadopoulos committed Sep 24, 2024
1 parent 6b55d22 commit 0bfd9a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nibabel/benchmarks/bench_array_to_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"""

import sys
from io import BytesIO # NOQA
from io import BytesIO # noqa: F401

import numpy as np
from numpy.testing import measure

from nibabel.volumeutils import array_to_file # NOQA
from nibabel.volumeutils import array_to_file # noqa: F401

from .butils import print_git_title

Expand Down
2 changes: 1 addition & 1 deletion nibabel/benchmarks/bench_finite_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import numpy as np
from numpy.testing import measure

from nibabel.volumeutils import finite_range # NOQA
from nibabel.volumeutils import finite_range # noqa: F401

from .butils import print_git_title

Expand Down
2 changes: 1 addition & 1 deletion nibabel/xmlutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"""Thin layer around xml.etree.ElementTree, to abstract nibabel xml support"""

from io import BytesIO
from xml.etree.ElementTree import Element, SubElement, tostring # noqa
from xml.etree.ElementTree import Element, SubElement, tostring # noqa: F401
from xml.parsers.expat import ParserCreate

from .filebasedimages import FileBasedHeader
Expand Down

0 comments on commit 0bfd9a6

Please sign in to comment.