Skip to content

Commit 2fd922f

Browse files
github-actions[bot]MarcoGorellimroeschke
authored andcommitted
⬆️ UPGRADE: Autoupdate pre-commit config (pandas-dev#53483)
* ⬆️ UPGRADE: Autoupdate pre-commit config * Remove unused arg * Formatting --------- Co-authored-by: MarcoGorelli <[email protected]> Co-authored-by: Matthew Roeschke <[email protected]>
1 parent cf26781 commit 2fd922f

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
types_or: [python, pyi]
2929
additional_dependencies: [black==23.3.0]
3030
- repo: https://github.com/charliermarsh/ruff-pre-commit
31-
rev: v0.0.264
31+
rev: v0.0.270
3232
hooks:
3333
- id: ruff
3434
args: [--exit-non-zero-on-fix]
@@ -75,7 +75,7 @@ repos:
7575
'--filter=-readability/casting,-runtime/int,-build/include_subdir,-readability/fn_size'
7676
]
7777
- repo: https://github.com/pycqa/pylint
78-
rev: v2.16.2
78+
rev: v3.0.0a6
7979
hooks:
8080
- id: pylint
8181
stages: [manual]
@@ -103,7 +103,7 @@ repos:
103103
hooks:
104104
- id: isort
105105
- repo: https://github.com/asottile/pyupgrade
106-
rev: v3.3.2
106+
rev: v3.4.0
107107
hooks:
108108
- id: pyupgrade
109109
args: [--py38-plus]

pandas/io/formats/format.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ def _get_strcols_without_index(self) -> list[list[str]]:
880880
fmt_values, self.justify, minimum=header_colwidth, adj=self.adj
881881
)
882882

883-
max_len = max(max(self.adj.len(x) for x in fmt_values), header_colwidth)
883+
max_len = max(*(self.adj.len(x) for x in fmt_values), header_colwidth)
884884
cheader = self.adj.justify(cheader, max_len, mode=self.justify)
885885
strcols.append(cheader + fmt_values)
886886

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ exclude = '''
197197

198198
[tool.ruff]
199199
line-length = 88
200-
update-check = false
201200
target-version = "py310"
202201
fix = true
203202
unfixable = []

0 commit comments

Comments
 (0)