Skip to content

Commit cecb08e

Browse files
authored
Merge pull request #293 from DimitriPapadopoulos/codespell
Fix typos found by codespell
2 parents bbc5ff1 + ca385d2 commit cecb08e

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

tabulate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2648,7 +2648,7 @@ def _update_lines(self, lines, new_line):
26482648
else: # A single reset code resets everything
26492649
self._active_codes = []
26502650

2651-
# Always ensure each line is color terminted if any colors are
2651+
# Always ensure each line is color terminated if any colors are
26522652
# still active, otherwise colors will bleed into other cells on the console
26532653
if len(self._active_codes) > 0:
26542654
new_line = new_line + _ansi_color_reset_code

test/test_input.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
def test_iterable_of_iterables():
14-
"Input: an interable of iterables."
14+
"Input: an iterable of iterables."
1515
ii = iter(map(lambda x: iter(x), [range(5), range(5, 0, -1)]))
1616
expected = "\n".join(
1717
["- - - - -", "0 1 2 3 4", "5 4 3 2 1", "- - - - -"]
@@ -21,7 +21,7 @@ def test_iterable_of_iterables():
2121

2222

2323
def test_iterable_of_iterables_headers():
24-
"Input: an interable of iterables with headers."
24+
"Input: an iterable of iterables with headers."
2525
ii = iter(map(lambda x: iter(x), [range(5), range(5, 0, -1)]))
2626
expected = "\n".join(
2727
[
@@ -36,7 +36,7 @@ def test_iterable_of_iterables_headers():
3636

3737

3838
def test_iterable_of_iterables_firstrow():
39-
"Input: an interable of iterables with the first row as headers"
39+
"Input: an iterable of iterables with the first row as headers"
4040
ii = iter(map(lambda x: iter(x), ["abcde", range(5), range(5, 0, -1)]))
4141
expected = "\n".join(
4242
[

test/test_internal.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ def test_wrap_text_wide_chars():
180180
except ImportError:
181181
skip("test_wrap_text_wide_chars is skipped")
182182

183-
rows = [["청자청자청자청자청자", "약간 감싸면 더 잘 보일 수있는 다소 긴 설명입니다"]]
183+
rows = [
184+
["청자청자청자청자청자", "약간 감싸면 더 잘 보일 수있는 다소 긴 설명입니다"]
185+
]
184186
widths = [5, 20]
185187
expected = [
186188
[
@@ -244,7 +246,14 @@ def test_wrap_text_to_colwidths_colors_wide_char():
244246
except ImportError:
245247
skip("test_wrap_text_to_colwidths_colors_wide_char is skipped")
246248

247-
data = [[("\033[31m약간 감싸면 더 잘 보일 수있는 다소 긴" " 설명입니다 설명입니다 설명입니다 설명입니다 설명\033[0m")]]
249+
data = [
250+
[
251+
(
252+
"\033[31m약간 감싸면 더 잘 보일 수있는 다소 긴"
253+
" 설명입니다 설명입니다 설명입니다 설명입니다 설명\033[0m"
254+
)
255+
]
256+
]
248257
result = T._wrap_text_to_colwidths(data, [30])
249258

250259
expected = [

test/test_output.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test output of the various forms of tabular data."""
2+
23
from pytest import mark
34

45
from common import assert_equal, raises, skip, check_warnings

test/test_textwrapper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Discretely test functionality of our custom TextWrapper"""
2+
23
import datetime
34

45
from tabulate import _CustomTextWrap as CTW, tabulate, _strip_ansi

0 commit comments

Comments
 (0)