Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply ruff/flake8-implicit-str-concat rules (ISC) #347

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tabulate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ def make_header_line(is_header, colwidths, colaligns):

else:
raise ValueError(
" _asciidoc_row() requires two (colwidths, colaligns) "
+ "or three (cell_values, colwidths, colaligns) arguments) "
"_asciidoc_row() requires two (colwidths, colaligns) "
"or three (cell_values, colwidths, colaligns) arguments)"
)


Expand Down Expand Up @@ -1353,7 +1353,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 = []
Expand Down
6 changes: 3 additions & 3 deletions test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


def test_tabulate_formats():
"API: tabulate_formats is a list of strings" ""
"API: tabulate_formats is a list of strings"
supported = tabulate_formats
print("tabulate_formats = %r" % supported)
assert type(supported) is list
Expand All @@ -35,7 +35,7 @@ def _check_signature(function, expected_sig):


def test_tabulate_signature():
"API: tabulate() type signature is unchanged" ""
"API: tabulate() type signature is unchanged"
assert type(tabulate) is type(lambda: None) # noqa
expected_sig = [
("tabular_data", _empty),
Expand All @@ -61,7 +61,7 @@ def test_tabulate_signature():


def test_simple_separated_format_signature():
"API: simple_separated_format() type signature is unchanged" ""
"API: simple_separated_format() type signature is unchanged"
assert type(simple_separated_format) is type(lambda: None) # noqa
expected_sig = [("separator", _empty)]
_check_signature(simple_separated_format, expected_sig)
Loading