Skip to content

Commit f31bf2b

Browse files
STY: Apply ruff/pygrep-hooks rule PGH004
PGH004 Use specific rule codes when using `noqa`
1 parent 35124b7 commit f31bf2b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

nibabel/benchmarks/bench_array_to_file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"""
1212

1313
import sys
14-
from io import BytesIO # NOQA
14+
from io import BytesIO # noqa: F401
1515

1616
import numpy as np
1717
from numpy.testing import measure
1818

19-
from nibabel.volumeutils import array_to_file # NOQA
19+
from nibabel.volumeutils import array_to_file # noqa: F401
2020

2121
from .butils import print_git_title
2222

nibabel/benchmarks/bench_finite_range.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import numpy as np
1616
from numpy.testing import measure
1717

18-
from nibabel.volumeutils import finite_range # NOQA
18+
from nibabel.volumeutils import finite_range # noqa: F401
1919

2020
from .butils import print_git_title
2121

nibabel/xmlutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"""Thin layer around xml.etree.ElementTree, to abstract nibabel xml support"""
1010

1111
from io import BytesIO
12-
from xml.etree.ElementTree import Element, SubElement, tostring # noqa
12+
from xml.etree.ElementTree import Element, SubElement, tostring # noqa: F401
1313
from xml.parsers.expat import ParserCreate
1414

1515
from .filebasedimages import FileBasedHeader

0 commit comments

Comments
 (0)