Skip to content

Commit d7fbb3e

Browse files
committed
Bump ruff
1 parent c778746 commit d7fbb3e

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ci:
1919
skip: [pylint, pyright, mypy]
2020
repos:
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.1.6
22+
rev: v0.1.13
2323
hooks:
2424
- id: ruff
2525
args: [--exit-non-zero-on-fix]
@@ -31,8 +31,6 @@ repos:
3131
exclude: ^pandas/tests
3232
args: [--select, "ANN001,ANN2", --fix-only, --exit-non-zero-on-fix]
3333
- id: ruff-format
34-
# TODO: "." not needed in ruff 0.1.8
35-
args: ["."]
3634
- repo: https://github.com/jendrikseipp/vulture
3735
rev: 'v2.10'
3836
hooks:

pandas/plotting/_matplotlib/tools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,14 @@ def _get_layout(
9898
nrows, ncols = layout
9999

100100
if nrows == -1 and ncols > 0:
101-
layout = nrows, ncols = (ceil(nplots / ncols), ncols)
101+
layout = (ceil(nplots / ncols), ncols)
102102
elif ncols == -1 and nrows > 0:
103-
layout = nrows, ncols = (nrows, ceil(nplots / nrows))
103+
layout = (nrows, ceil(nplots / nrows))
104104
elif ncols <= 0 and nrows <= 0:
105105
msg = "At least one dimension of layout must be positive"
106106
raise ValueError(msg)
107107

108+
nrows, ncols = layout
108109
if nrows * ncols < nplots:
109110
raise ValueError(
110111
f"Layout of {nrows}x{ncols} must be larger than required size {nplots}"

pandas/tests/indexes/multi/test_join.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def test_join_dtypes_all_nan(any_numeric_ea_dtype):
257257

258258
def test_join_index_levels():
259259
# GH#53093
260-
midx = midx = MultiIndex.from_tuples([("a", "2019-02-01"), ("a", "2019-02-01")])
260+
midx = MultiIndex.from_tuples([("a", "2019-02-01"), ("a", "2019-02-01")])
261261
midx2 = MultiIndex.from_tuples([("a", "2019-01-31")])
262262
result = midx.join(midx2, how="outer")
263263
expected = MultiIndex.from_tuples(

0 commit comments

Comments
 (0)