Skip to content

Commit e203092

Browse files
author
xopherw
committed
pre-commit run --all-files
1 parent 5369c92 commit e203092

File tree

8 files changed

+20
-7
lines changed

8 files changed

+20
-7
lines changed

doc/source/conf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,11 @@
246246
switcher_version = ".".join(version.split(".")[:2])
247247

248248
# We have our custom "pandas_footer.html" template, using copyright for the current year
249-
copyright = Markup(f"{datetime.now().year}, pandas via "
250-
"<a href=\"https://numfocus.org\">NumFOCUS, Inc</a>. "
251-
"Hosted by <a href=\"https://www.ovhcloud.com\">OVHcloud</a>")
249+
copyright = Markup(
250+
f"{datetime.now().year}, pandas via "
251+
'<a href="https://numfocus.org">NumFOCUS, Inc</a>. '
252+
'Hosted by <a href="https://www.ovhcloud.com">OVHcloud</a>'
253+
)
252254

253255
html_theme_options = {
254256
"footer_start": ["copyright"],

pandas/tests/arrays/categorical/test_repr.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def test_unicode_print(self, using_infer_string):
8686
['ああああ', 'いいいいい', 'ううううううう', 'ああああ', 'いいいいい', ..., 'いいいいい', 'ううううううう', 'ああああ', 'いいいいい', 'ううううううう']
8787
Length: 60
8888
Categories (3, object): ['ああああ', 'いいいいい', 'ううううううう']""" # noqa: E501
89+
# noqa: E501
8990

9091
if using_infer_string:
9192
expected = expected.replace("object", "str")
@@ -99,6 +100,7 @@ def test_unicode_print(self, using_infer_string):
99100
expected = """['ああああ', 'いいいいい', 'ううううううう', 'ああああ', 'いいいいい', ..., 'いいいいい', 'ううううううう', 'ああああ', 'いいいいい', 'ううううううう']
100101
Length: 60
101102
Categories (3, object): ['ああああ', 'いいいいい', 'ううううううう']""" # noqa: E501
103+
# noqa: E501
102104

103105
if using_infer_string:
104106
expected = expected.replace("object", "str")

pandas/tests/indexes/categorical/test_formats.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_categorical_index_repr_unicode_multiline(self):
5252
expected = """CategoricalIndex(['あ', 'いい', 'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう', 'あ',
5353
'いい', 'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい',
5454
'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう'],
55-
categories=['あ', 'いい', 'ううう'], ordered=False, dtype='category')""" # noqa: E501
55+
categories=['あ', 'いい', 'ううう'], ordered=False, dtype='category')""" # noqa: E501# noqa: E501
5656
assert repr(idx) == expected
5757

5858
def test_categorical_index_repr_unicode_truncated(self):
@@ -61,7 +61,7 @@ def test_categorical_index_repr_unicode_truncated(self):
6161
expected = """CategoricalIndex(['あ', 'いい', 'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう', 'あ',
6262
...
6363
'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう'],
64-
categories=['あ', 'いい', 'ううう'], ordered=False, dtype='category', length=300)""" # noqa: E501
64+
categories=['あ', 'いい', 'ううう'], ordered=False, dtype='category', length=300)""" # noqa: E501# noqa: E501
6565
assert repr(idx) == expected
6666

6767
def test_categorical_index_repr_unicode_many_categories(self):
@@ -70,6 +70,7 @@ def test_categorical_index_repr_unicode_many_categories(self):
7070
expected = """CategoricalIndex(['あ', 'い', 'う', 'え', 'お', 'か', 'き', 'く', 'け', 'こ', 'さ', 'し',
7171
'す', 'せ', 'そ'],
7272
categories=['あ', 'い', 'う', 'え', ..., 'し', 'す', 'せ', 'そ'], ordered=False, dtype='category')""" # noqa: E501
73+
# noqa: E501
7374
assert repr(idx) == expected
7475

7576
def test_categorical_index_repr_east_asian_width(self):
@@ -87,7 +88,7 @@ def test_categorical_index_repr_east_asian_width_multiline(self):
8788
'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう',
8889
'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい',
8990
'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう'],
90-
categories=['あ', 'いい', 'ううう'], ordered=False, dtype='category')""" # noqa: E501
91+
categories=['あ', 'いい', 'ううう'], ordered=False, dtype='category')""" # noqa: E501# noqa: E501
9192

9293
assert repr(idx) == expected
9394

@@ -100,7 +101,7 @@ def test_categorical_index_repr_east_asian_width_truncated(self):
100101
...
101102
'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう',
102103
'あ', 'いい', 'ううう'],
103-
categories=['あ', 'いい', 'ううう'], ordered=False, dtype='category', length=300)""" # noqa: E501
104+
categories=['あ', 'いい', 'ううう'], ordered=False, dtype='category', length=300)""" # noqa: E501# noqa: E501
104105

105106
assert repr(idx) == expected
106107

@@ -110,5 +111,6 @@ def test_categorical_index_repr_east_asian_width_many_categories(self):
110111
expected = """CategoricalIndex(['あ', 'い', 'う', 'え', 'お', 'か', 'き', 'く', 'け', 'こ',
111112
'さ', 'し', 'す', 'せ', 'そ'],
112113
categories=['あ', 'い', 'う', 'え', ..., 'し', 'す', 'せ', 'そ'], ordered=False, dtype='category')""" # noqa: E501
114+
# noqa: E501
113115

114116
assert repr(idx) == expected

pandas/tests/io/formats/test_printing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def test_adjoin_unicode(self):
107107
b ええ hhh
108108
c ff いいい"""
109109

110+
110111
adjoined = adj.adjoin(2, *data)
111112
assert adjoined == expected
112113
cols = adjoined.split("\n")
@@ -118,6 +119,7 @@ def test_adjoin_unicode(self):
118119
b ええ hhh
119120
c ff いいい"""
120121

122+
121123
adjoined = adj.adjoin(7, *data)
122124
assert adjoined == expected
123125
cols = adjoined.split("\n")

pandas/tests/io/test_common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def test_bytesiowrapper_returns_correct_bytes(self):
122122
1,2,3
123123
©,®,®
124124
Look,a snake,🐍"""
125+
125126
with icom.get_handle(StringIO(data), "rb", is_text=False) as handles:
126127
result = b""
127128
chunksize = 5
@@ -147,6 +148,7 @@ def test_get_handle_pyarrow_compat(self):
147148
1,2,3
148149
©,®,®
149150
Look,a snake,🐍"""
151+
150152
expected = pd.DataFrame(
151153
{"a": ["1", "©", "Look"], "b": ["2", "®", "a snake"], "c": ["3", "®", "🐍"]}
152154
)

pandas/tests/util/test_assert_almost_equal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ def test_assert_almost_equal_unicode():
458458
\\[left\\]: \\[á, à, ä\\]
459459
\\[right\\]: \\[á, à, å\\]"""
460460

461+
461462
with pytest.raises(AssertionError, match=msg):
462463
tm.assert_almost_equal(np.array(["á", "à", "ä"]), np.array(["á", "à", "å"]))
463464

pandas/tests/util/test_assert_frame_equal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ def test_frame_equal_block_mismatch(by_blocks_fixture, frame_or_series):
180180
\\[index\\]: \\[0, 1, 2\\]
181181
\\[left\\]: \\[é, è, ë\\]
182182
\\[right\\]: \\[é, è, e̊\\]""",
183+
,
183184
),
184185
(
185186
{"A": ["á", "à", "ä"], "E": ["é", "è", "ë"]},

pandas/tests/util/test_assert_numpy_array_equal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def test_numpy_array_equal_unicode():
135135
\\[left\\]: \\[á, à, ä\\]
136136
\\[right\\]: \\[á, à, å\\]"""
137137

138+
138139
with pytest.raises(AssertionError, match=msg):
139140
tm.assert_numpy_array_equal(
140141
np.array(["á", "à", "ä"]), np.array(["á", "à", "å"])

0 commit comments

Comments
 (0)