Skip to content

Commit 58bd5e9

Browse files
authored
Merge branch 'master' into deprecate_ruff_rules
2 parents e52c4c8 + 93c6d92 commit 58bd5e9

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

nibabel/casting.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ class CastingError(Exception):
5151
getattr(np, dtype)
5252
for dtype in (
5353
'int8', 'byte', 'int16', 'short', 'int32', 'intc', 'int_', 'int64', 'longlong',
54-
'uint8', 'ubyte', 'uint16', 'ushort', 'uint32', 'uintc', 'uint', 'uint64', 'ulonglong', # noqa: E501
55-
'float16', 'half', 'float32', 'single', 'float64', 'double', 'float96', 'float128', 'longdouble', # noqa: E501
56-
'complex64', 'csingle', 'complex128', 'cdouble', 'complex192', 'complex256', 'clongdouble', # noqa: E501
54+
'uint8', 'ubyte', 'uint16', 'ushort', 'uint32', 'uintc', 'uint', 'uint64', 'ulonglong',
55+
'float16', 'half', 'float32', 'single', 'float64', 'double', 'float96', 'float128', 'longdouble',
56+
'complex64', 'csingle', 'complex128', 'cdouble', 'complex192', 'complex256', 'clongdouble',
5757
# other names of the built-in scalar types
58-
'int_', 'float_', 'complex_', 'bytes_', 'str_', 'bool_', 'datetime64', 'timedelta64', # noqa: E501
58+
'int_', 'float_', 'complex_', 'bytes_', 'str_', 'bool_', 'datetime64', 'timedelta64',
5959
# other
6060
'object_', 'void',
6161
)

nibabel/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,4 @@
108108
109109
.. _Digital Object Identifier: https://en.wikipedia.org/wiki/Digital_object_identifier
110110
.. _zenodo: https://zenodo.org
111-
""" # noqa: E501
111+
"""

nibabel/parrec.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# copyright and license terms.
77
#
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
9-
# Disable line length checking for PAR fragments in module docstring
10-
# noqa: E501
119
"""Read images in PAR/REC format
1210
1311
This is yet another MRI image format generated by Philips scanners. It is an

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ select = [
131131
"PYI",
132132
"Q",
133133
"RSE",
134+
"RUF",
134135
"TCH",
135136
"UP",
136137
]
@@ -158,6 +159,10 @@ ignore = [
158159
"PT017",
159160
"PT018",
160161
"PYI024",
162+
"RUF005",
163+
"RUF012", # TODO: enable
164+
"RUF015",
165+
"RUF017", # TODO: enable
161166
"UP027", # deprecated
162167
"UP038", # https://github.com/astral-sh/ruff/issues/7871
163168
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules

0 commit comments

Comments
 (0)