Skip to content

Commit

Permalink
Disallow empty comment (pandas-dev#60858)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqa236 authored Feb 5, 2025
1 parent 2cc9b21 commit 51187b3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion pandas/tests/extension/decimal/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ def to_numpy(
return result

def __array_ufunc__(self, ufunc: np.ufunc, method: str, *inputs, **kwargs):
#
if not all(
isinstance(t, self._HANDLED_TYPES + (DecimalArray,)) for t in inputs
):
Expand Down
5 changes: 0 additions & 5 deletions pandas/tests/scalar/period/test_period.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,6 @@ def test_properties_quarterly(self):
qedec_date = Period(freq="Q-DEC", year=2007, quarter=1)
qejan_date = Period(freq="Q-JAN", year=2007, quarter=1)
qejun_date = Period(freq="Q-JUN", year=2007, quarter=1)
#
for x in range(3):
for qd in (qedec_date, qejan_date, qejun_date):
assert (qd + x).qyear == 2007
Expand All @@ -1016,7 +1015,6 @@ def test_properties_monthly(self):
def test_properties_weekly(self):
# Test properties on Periods with daily frequency.
w_date = Period(freq="W", year=2007, month=1, day=7)
#
assert w_date.year == 2007
assert w_date.quarter == 1
assert w_date.month == 1
Expand Down Expand Up @@ -1046,7 +1044,6 @@ def test_properties_daily(self):
# Test properties on Periods with daily frequency.
with tm.assert_produces_warning(FutureWarning, match=bday_msg):
b_date = Period(freq="B", year=2007, month=1, day=1)
#
assert b_date.year == 2007
assert b_date.quarter == 1
assert b_date.month == 1
Expand Down Expand Up @@ -1089,7 +1086,6 @@ def test_properties_hourly(self):
def test_properties_minutely(self):
# Test properties on Periods with minutely frequency.
t_date = Period(freq="Min", year=2007, month=1, day=1, hour=0, minute=0)
#
assert t_date.quarter == 1
assert t_date.month == 1
assert t_date.day == 1
Expand All @@ -1108,7 +1104,6 @@ def test_properties_secondly(self):
s_date = Period(
freq="Min", year=2007, month=1, day=1, hour=0, minute=0, second=0
)
#
assert s_date.year == 2007
assert s_date.quarter == 1
assert s_date.month == 1
Expand Down
1 change: 0 additions & 1 deletion pandas/tests/scalar/timestamp/methods/test_round.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ def test_round_dst_border_ambiguous(self, method, unit):
# GH 18946 round near "fall back" DST
ts = Timestamp("2017-10-29 00:00:00", tz="UTC").tz_convert("Europe/Madrid")
ts = ts.as_unit(unit)
#
result = getattr(ts, method)("h", ambiguous=True)
assert result == ts
assert result._creso == getattr(NpyDatetimeUnit, f"NPY_FR_{unit}").value
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,6 @@ ignore = [
"PLR1733", # 5 errors, it seems like we wannt to ignore these
# Unnecessary lookup of list item by index
"PLR1736", # 4 errors, we're currently having inline pylint ignore
# empty-comment
"PLR2044", # autofixable
# Unpacking a dictionary in iteration without calling `.items()`
"PLE1141", # autofixable
# import-outside-toplevel
Expand Down

0 comments on commit 51187b3

Please sign in to comment.