You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deftest(categ_ids, start_dt, end_dt):
"""Retrieve time blocks that fall within a specific time interval. :param categ_ids: iterable containing list of category IDs :param start_dt: start of search interval (``datetime``, expected to be in display timezone) :param end_dt: end of search interval (``datetime`` in expected to be in display timezone) """
ruff --isolated --select D208 --fix does this:
deftest(categ_ids, start_dt, end_dt):
"""Retrieve time blocks that fall within a specific time interval. :param categ_ids: iterable containing list of category IDs :param start_dt: start of search interval (``datetime``, expected to be in display timezone) :param end_dt: end of search interval (``datetime`` in expected to be in display timezone) """
But this would be sufficient to fix the violation and preserve the intent of the indentation that's not part of the over-indentation:
deftest(categ_ids, start_dt, end_dt):
"""Retrieve time blocks that fall within a specific time interval. :param categ_ids: iterable containing list of category IDs :param start_dt: start of search interval (``datetime``, expected to be in display timezone) :param end_dt: end of search interval (``datetime`` in expected to be in display timezone) """
IMHO the behavior of the fix should be less aggressive or the fix should be marked as unsafe by default.
D207 should probably be adapted likewise when indenting under-indented docstrings.
The text was updated successfully, but these errors were encountered:
…d lines (#8699)
Closes#8695
We track the smallest offset seen for overindented lines then only
reduce the indentation of the lines that far to preserve indentation in
other lines. This rule's behavior now matches our formatter, which is
nice.
We may want to gate this with preview.
ruff --isolated --select D208 --fix
does this:But this would be sufficient to fix the violation and preserve the intent of the indentation that's not part of the over-indentation:
IMHO the behavior of the fix should be less aggressive or the fix should be marked as unsafe by default.
D207
should probably be adapted likewise when indenting under-indented docstrings.The text was updated successfully, but these errors were encountered: