From f53679d561d05edad12034d9edca2fb34604358e Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Wed, 8 Jan 2025 05:12:51 -0800 Subject: [PATCH] Fixed PGH004 (blanket-noqa): Use a colon when specifying `noqa` rule codes --- management/mail_log.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/management/mail_log.py b/management/mail_log.py index c9a66939..e5509175 100755 --- a/management/mail_log.py +++ b/management/mail_log.py @@ -678,7 +678,7 @@ def print_user_table(users, data=None, sub_data=None, activity=None, latest=None data_accum[col] += d[row] try: - if None not in [latest, earliest]: # noqa PLR6201 + if None not in [latest, earliest]: # noqa: PLR6201 vert_pos = len(line) e = earliest[row] l = latest[row] @@ -731,7 +731,7 @@ def print_user_table(users, data=None, sub_data=None, activity=None, latest=None else: header += l.rjust(max(5, len(l) + 1, col_widths[col])) - if None not in [latest, earliest]: # noqa PLR6201 + if None not in [latest, earliest]: # noqa: PLR6201 header += " │ timespan " lines.insert(0, header.rstrip()) @@ -756,7 +756,7 @@ def print_user_table(users, data=None, sub_data=None, activity=None, latest=None footer += temp.format(data_accum[row]) try: - if None not in [latest, earliest]: # noqa PLR6201 + if None not in [latest, earliest]: # noqa: PLR6201 max_l = max(latest) min_e = min(earliest) timespan = relativedelta(max_l, min_e)