File tree 5 files changed +22
-6
lines changed
5 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 66
66
)
67
67
import warnings
68
68
69
- from pandas ._typing import F # noqa: TCH001
70
- from pandas ._typing import T # noqa: TCH001
69
+ from pandas ._typing import (
70
+ F ,
71
+ T ,
72
+ )
71
73
from pandas .util ._exceptions import find_stack_level
72
74
73
75
Original file line number Diff line number Diff line change 13
13
# Below imports needs to happen first to ensure pandas top level
14
14
# module gets monkeypatched with the pandas_datetime_CAPI
15
15
# see pandas_datetime_exec in pd_datetime.c
16
- import pandas ._libs .pandas_parser # noqa: F401, E501 # isort: skip # type: ignore[reportUnusedImport]
16
+ import pandas ._libs .pandas_parser # noqa: E501 # isort: skip # type: ignore[reportUnusedImport]
17
17
import pandas ._libs .pandas_datetime # noqa: F401,E501 # isort: skip # type: ignore[reportUnusedImport]
18
18
from pandas ._libs .interval import Interval
19
19
from pandas ._libs .tslibs import (
Original file line number Diff line number Diff line change 4
4
5
5
from pandas ._libs .lib import infer_dtype
6
6
7
- from pandas .core .dtypes .api import * # noqa: F401, F403
7
+ from pandas .core .dtypes .api import * # noqa: F403
8
8
from pandas .core .dtypes .concat import union_categoricals
9
9
from pandas .core .dtypes .dtypes import (
10
10
CategoricalDtype ,
Original file line number Diff line number Diff line change @@ -1992,7 +1992,7 @@ class ArrowDtype(StorageExtensionDtype):
1992
1992
timestamp[s, tz=America/New_York][pyarrow]
1993
1993
>>> pd.ArrowDtype(pa.list_(pa.int64()))
1994
1994
list<item: int64>[pyarrow]
1995
- """ # noqa: E501
1995
+ """
1996
1996
1997
1997
_metadata = ("storage" , "pyarrow_dtype" ) # type: ignore[assignment]
1998
1998
Original file line number Diff line number Diff line change @@ -236,7 +236,9 @@ select = [
236
236
# comprehensions
237
237
" C4" ,
238
238
# pygrep-hooks
239
- " PGH"
239
+ " PGH" ,
240
+ # Ruff-specific rules
241
+ " RUF" ,
240
242
]
241
243
242
244
ignore = [
@@ -308,6 +310,18 @@ ignore = [
308
310
" PLR2004" ,
309
311
# Consider `elif` instead of `else` then `if` to remove indentation level
310
312
" PLR5501" ,
313
+ # ambiguous-unicode-character-string
314
+ " RUF001" ,
315
+ # ambiguous-unicode-character-docstring
316
+ " RUF002" ,
317
+ # ambiguous-unicode-character-comment
318
+ " RUF003" ,
319
+ # collection-literal-concatenation
320
+ " RUF005" ,
321
+ # pairwise-over-zipped (>=PY310 only)
322
+ " RUF007" ,
323
+ # explicit-f-string-type-conversion
324
+ " RUF010"
311
325
]
312
326
313
327
exclude = [
You can’t perform that action at this time.
0 commit comments