Skip to content

Commit

Permalink
Reinstate D212 Ruff rule.
Browse files Browse the repository at this point in the history
This also updated one docstring in cf_units/__init__.py (correctly) due
to the removal of a redundant `noqa: E501` marker in a previous commit
  • Loading branch information
ukmo-ccbunney committed Nov 21, 2024
1 parent bb551e1 commit 2f88721
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions cf_units/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1637,8 +1637,7 @@ def __ne__(self, other):
return not self == other

def change_calendar(self, calendar):
"""
Returns a new unit with the requested calendar, modifying the
"""Returns a new unit with the requested calendar, modifying the
reference date if necessary. Only works with calendars that
represent the real world (standard, proleptic_gregorian, julian)
and with short time intervals (days or less).
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ ignore = [
preview = false
select = [
"ALL",
# Note: the above "all" disables conflicting rules, if you want that
# rule it needs to be explicitly enabled below:
"D212", # Multi-line docstring summary should start at the first line
]

[tool.ruff.lint.isort]
Expand Down

0 comments on commit 2f88721

Please sign in to comment.