From 19269a96d7329ecacb0a78cbd653e2674e0d3f2d Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 5 Mar 2026 10:10:30 +0100 Subject: [PATCH 1/2] Apply ruff/flake8-implicit-str-concat rule ISC003 Explicitly concatenated string should be implicitly concatenated --- tabulate/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabulate/__init__.py b/tabulate/__init__.py index c3f60d3..b0810a9 100644 --- a/tabulate/__init__.py +++ b/tabulate/__init__.py @@ -300,7 +300,7 @@ def make_header_line(is_header, colwidths, colaligns): else: raise ValueError( "_asciidoc_row() requires two (colwidths, colaligns) " - + "or three (cell_values, colwidths, colaligns) arguments) " + "or three (cell_values, colwidths, colaligns) arguments) " ) @@ -1409,7 +1409,7 @@ def _prepend_row_index(rows, index): if isinstance(index, Sized) and len(index) != len(rows): raise ValueError( "index must be as long as the number of data rows: " - + f"len(index)={len(index)} len(rows)={len(rows)}" + f"len(index)={len(index)} len(rows)={len(rows)}" ) sans_rows, separating_lines = _remove_separating_lines(rows) new_rows = [] From 26c9a646b17b366c22cd15a5b0de3943ffd1f502 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 5 Mar 2026 10:11:55 +0100 Subject: [PATCH 2/2] Enforce ruff/flake8-implicit-str-concat rules (ISC) --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2ba8dad..600114b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ dev = [ line-length = 99 [tool.ruff.lint] -extend-select = ["W", "I", "C90"] +extend-select = ["W", "ISC", "I", "C90"] ignore = ["E721", "C901"] [tool.ruff.lint.mccabe]