Skip to content

Commit 6dadc86

Browse files
jaracoclaude
andcommitted
Remove DTZ011 suppressions that Ruff 0.17 reports as unused.
Ruff 0.17 dropped DTZ011 from its default rule set (it was among the defaults added in 0.16), so RUF100 now flags the noqa directives in setuptools/warnings.py. The trailing comments only justified the suppressions, so drop them along with the directives. Ref jaraco/skeleton#210. Co-Authored-By: Claude Opus 5 <[email protected]>
1 parent 715ec38 commit 6dadc86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎setuptools/warnings.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def emit(
4747
due = date(*due_date) if due_date else None
4848

4949
text = cls._format(summary_, details_, due, see_url or docs_url, kwargs)
50-
if due and due < date.today() and _should_enforce(): # noqa: DTZ011 # local date intended for due-date comparison
50+
if due and due < date.today() and _should_enforce():
5151
raise cls(text)
5252
warnings.warn(text, cls, stacklevel=stacklevel + 1)
5353

@@ -61,7 +61,7 @@ def _format(
6161
format_args: dict | None = None,
6262
) -> str:
6363
"""Private: reserved for ``setuptools`` internal use only"""
64-
today = date.today() # noqa: DTZ011 # local date intended for due-date comparison
64+
today = date.today()
6565
summary = cleandoc(summary).format_map(format_args or {})
6666
possible_parts = [
6767
cleandoc(details).format_map(format_args or {}),

0 commit comments

Comments
 (0)