Skip to content

Commit 51187b3

Browse files
authored
Disallow empty comment (#60858)
1 parent 2cc9b21 commit 51187b3

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

pandas/tests/extension/decimal/array.py

-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ def to_numpy(
125125
return result
126126

127127
def __array_ufunc__(self, ufunc: np.ufunc, method: str, *inputs, **kwargs):
128-
#
129128
if not all(
130129
isinstance(t, self._HANDLED_TYPES + (DecimalArray,)) for t in inputs
131130
):

pandas/tests/scalar/period/test_period.py

-5
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,6 @@ def test_properties_quarterly(self):
991991
qedec_date = Period(freq="Q-DEC", year=2007, quarter=1)
992992
qejan_date = Period(freq="Q-JAN", year=2007, quarter=1)
993993
qejun_date = Period(freq="Q-JUN", year=2007, quarter=1)
994-
#
995994
for x in range(3):
996995
for qd in (qedec_date, qejan_date, qejun_date):
997996
assert (qd + x).qyear == 2007
@@ -1016,7 +1015,6 @@ def test_properties_monthly(self):
10161015
def test_properties_weekly(self):
10171016
# Test properties on Periods with daily frequency.
10181017
w_date = Period(freq="W", year=2007, month=1, day=7)
1019-
#
10201018
assert w_date.year == 2007
10211019
assert w_date.quarter == 1
10221020
assert w_date.month == 1
@@ -1046,7 +1044,6 @@ def test_properties_daily(self):
10461044
# Test properties on Periods with daily frequency.
10471045
with tm.assert_produces_warning(FutureWarning, match=bday_msg):
10481046
b_date = Period(freq="B", year=2007, month=1, day=1)
1049-
#
10501047
assert b_date.year == 2007
10511048
assert b_date.quarter == 1
10521049
assert b_date.month == 1
@@ -1089,7 +1086,6 @@ def test_properties_hourly(self):
10891086
def test_properties_minutely(self):
10901087
# Test properties on Periods with minutely frequency.
10911088
t_date = Period(freq="Min", year=2007, month=1, day=1, hour=0, minute=0)
1092-
#
10931089
assert t_date.quarter == 1
10941090
assert t_date.month == 1
10951091
assert t_date.day == 1
@@ -1108,7 +1104,6 @@ def test_properties_secondly(self):
11081104
s_date = Period(
11091105
freq="Min", year=2007, month=1, day=1, hour=0, minute=0, second=0
11101106
)
1111-
#
11121107
assert s_date.year == 2007
11131108
assert s_date.quarter == 1
11141109
assert s_date.month == 1

pandas/tests/scalar/timestamp/methods/test_round.py

-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ def test_round_dst_border_ambiguous(self, method, unit):
165165
# GH 18946 round near "fall back" DST
166166
ts = Timestamp("2017-10-29 00:00:00", tz="UTC").tz_convert("Europe/Madrid")
167167
ts = ts.as_unit(unit)
168-
#
169168
result = getattr(ts, method)("h", ambiguous=True)
170169
assert result == ts
171170
assert result._creso == getattr(NpyDatetimeUnit, f"NPY_FR_{unit}").value

pyproject.toml

-2
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,6 @@ ignore = [
362362
"PLR1733", # 5 errors, it seems like we wannt to ignore these
363363
# Unnecessary lookup of list item by index
364364
"PLR1736", # 4 errors, we're currently having inline pylint ignore
365-
# empty-comment
366-
"PLR2044", # autofixable
367365
# Unpacking a dictionary in iteration without calling `.items()`
368366
"PLE1141", # autofixable
369367
# import-outside-toplevel

0 commit comments

Comments
 (0)