Skip to content

Commit 439e6e6

Browse files
committed
Added todo for new Django 5.2 feature
1 parent a320e9c commit 439e6e6

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.ambient-package-update/metadata.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@
4747
key="RUF012", comment="Mutable class attributes should be annotated with `typing.ClassVar`"
4848
),
4949
RuffIgnoredInspection(key="TRY003", comment="Avoid specifying long messages outside the exception class"),
50+
RuffIgnoredInspection(key="TD002", comment="Missing author in to-do"),
51+
RuffIgnoredInspection(key="TD003", comment="TD003 Missing issue link for this to-do"),
5052
],
5153
)

django_pony_express/services/tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ def assert_body_contains(self, search_str, msg=None):
126126
:param msg: str
127127
"""
128128

129+
# TODO: use Django 5.2 `body_contains()` once we drop older versions
130+
# (https://docs.djangoproject.com/en/5.2/topics/email/#django.core.mail.EmailMultiAlternatives.body_contains)
129131
# Assert string is contained in TXT part
130132
self._testcase.assertIn(search_str, self._get_txt_content(), msg=msg)
131133
# Assert string is contained in HTML part (if HTML part is set)

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ lint.ignore = [
102102
"B905", # Can be enabled when Python <=3.9 support is dropped
103103
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
104104
"TRY003", # Avoid specifying long messages outside the exception class
105+
"TD002", # Missing author in to-do
106+
"TD003", # TD003 Missing issue link for this to-do
105107
]
106108

107109
# Allow autofix for all enabled rules (when `--fix`) is provided.

0 commit comments

Comments
 (0)