@@ -226,8 +226,10 @@ def test_isnumeric_unicode(method, expected, any_string_dtype):
226
226
# 0x00bc: ¼ VULGAR FRACTION ONE QUARTER
227
227
# 0x2605: ★ not number
228
228
# 0x1378: ፸ ETHIOPIC NUMBER SEVENTY
229
- # 0xFF13: 3 Em 3
230
- ser = Series (["A" , "3" , "¼" , "★" , "፸" , "3" , "four" ], dtype = any_string_dtype )
229
+ # 0xFF13: 3 Em 3 # noqa: RUF003
230
+ ser = Series (
231
+ ["A" , "3" , "¼" , "★" , "፸" , "3" , "four" ], dtype = any_string_dtype # noqa: RUF001
232
+ )
231
233
expected_dtype = "bool" if any_string_dtype == "object" else "boolean"
232
234
expected = Series (expected , dtype = expected_dtype )
233
235
result = getattr (ser .str , method )()
@@ -246,7 +248,7 @@ def test_isnumeric_unicode(method, expected, any_string_dtype):
246
248
],
247
249
)
248
250
def test_isnumeric_unicode_missing (method , expected , any_string_dtype ):
249
- values = ["A" , np .nan , "¼" , "★" , np .nan , "3" , "four" ]
251
+ values = ["A" , np .nan , "¼" , "★" , np .nan , "3" , "four" ] # noqa: RUF001
250
252
ser = Series (values , dtype = any_string_dtype )
251
253
expected_dtype = "object" if any_string_dtype == "object" else "boolean"
252
254
expected = Series (expected , dtype = expected_dtype )
@@ -564,12 +566,12 @@ def test_decode_errors_kwarg():
564
566
"form, expected" ,
565
567
[
566
568
("NFKC" , ["ABC" , "ABC" , "123" , np .nan , "アイエ" ]),
567
- ("NFC" , ["ABC" , "ABC" , "123" , np .nan , "アイエ" ]),
569
+ ("NFC" , ["ABC" , "ABC" , "123" , np .nan , "アイエ" ]), # noqa: RUF001
568
570
],
569
571
)
570
572
def test_normalize (form , expected , any_string_dtype ):
571
573
ser = Series (
572
- ["ABC" , "ABC" , "123" , np .nan , "アイエ" ],
574
+ ["ABC" , "ABC" , "123" , np .nan , "アイエ" ], # noqa: RUF001
573
575
index = ["a" , "b" , "c" , "d" , "e" ],
574
576
dtype = any_string_dtype ,
575
577
)
@@ -580,7 +582,7 @@ def test_normalize(form, expected, any_string_dtype):
580
582
581
583
def test_normalize_bad_arg_raises (any_string_dtype ):
582
584
ser = Series (
583
- ["ABC" , "ABC" , "123" , np .nan , "アイエ" ],
585
+ ["ABC" , "ABC" , "123" , np .nan , "アイエ" ], # noqa: RUF001
584
586
index = ["a" , "b" , "c" , "d" , "e" ],
585
587
dtype = any_string_dtype ,
586
588
)
@@ -589,7 +591,7 @@ def test_normalize_bad_arg_raises(any_string_dtype):
589
591
590
592
591
593
def test_normalize_index ():
592
- idx = Index (["ABC" , "123" , "アイエ" ])
594
+ idx = Index (["ABC" , "123" , "アイエ" ]) # noqa: RUF001
593
595
expected = Index (["ABC" , "123" , "アイエ" ])
594
596
result = idx .str .normalize ("NFKC" )
595
597
tm .assert_index_equal (result , expected )
0 commit comments