diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index de4c6687fbc0f..220465a1d2847 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: types_or: [python, pyi] additional_dependencies: [black==23.3.0] - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.264 + rev: v0.0.270 hooks: - id: ruff args: [--exit-non-zero-on-fix] @@ -75,7 +75,7 @@ repos: '--filter=-readability/casting,-runtime/int,-build/include_subdir,-readability/fn_size' ] - repo: https://github.com/pycqa/pylint - rev: v2.16.2 + rev: v3.0.0a6 hooks: - id: pylint stages: [manual] @@ -103,7 +103,7 @@ repos: hooks: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v3.3.2 + rev: v3.4.0 hooks: - id: pyupgrade args: [--py38-plus] diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index 24a396eb9491e..a425944647b5c 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -880,7 +880,7 @@ def _get_strcols_without_index(self) -> list[list[str]]: fmt_values, self.justify, minimum=header_colwidth, adj=self.adj ) - max_len = max(max(self.adj.len(x) for x in fmt_values), header_colwidth) + max_len = max(*(self.adj.len(x) for x in fmt_values), header_colwidth) cheader = self.adj.justify(cheader, max_len, mode=self.justify) strcols.append(cheader + fmt_values) diff --git a/pyproject.toml b/pyproject.toml index f9dfe65ab2a01..9da2951272541 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -197,7 +197,6 @@ exclude = ''' [tool.ruff] line-length = 88 -update-check = false target-version = "py310" fix = true unfixable = []