From d9c03e08ce58b3cb69e30aeb88a501680b0d34a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kone=C4=8Dn=C3=BD?= Date: Fri, 3 Feb 2023 14:33:39 +0100 Subject: [PATCH] Fix formatting for for black > 23 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Konečný --- tests/plugins/test_check_email_overrides.py | 1 - tests/plugins/test_clean_retired_packages.py | 1 - tests/plugins/test_debug.py | 1 - tests/plugins/test_distgit_bugzilla_sync.py | 1 - tests/plugins/test_flag_ci_pr.py | 1 - tests/plugins/test_flag_commit_build.py | 1 - tests/plugins/test_packager_bugzilla_sync.py | 1 - tests/plugins/test_packagers_without_bugzilla.py | 1 - tests/plugins/test_pdc_import_compose.py | 2 -- tests/plugins/test_pdc_modules.py | 1 - tests/plugins/test_pdc_retired_packages.py | 1 - tests/plugins/test_pdc_update_critpath.py | 2 -- tests/test_base.py | 1 - toddlers/plugins/distgit_bugzilla_sync.py | 1 - toddlers/plugins/packagers_without_bugzilla.py | 1 - toddlers/plugins/pdc_update_critpath.py | 2 -- toddlers/utils/bugzilla_system.py | 1 - toddlers/utils/notify.py | 2 -- 18 files changed, 22 deletions(-) diff --git a/tests/plugins/test_check_email_overrides.py b/tests/plugins/test_check_email_overrides.py index c5e32ec..150cfb7 100644 --- a/tests/plugins/test_check_email_overrides.py +++ b/tests/plugins/test_check_email_overrides.py @@ -7,7 +7,6 @@ import toddlers.plugins.check_email_overrides class TestCheckEmailOverridesToddler: - toddler_cls = toddlers.plugins.check_email_overrides.CheckEmailOverrides def test_accepts_topic_invalid(self, toddler): diff --git a/tests/plugins/test_clean_retired_packages.py b/tests/plugins/test_clean_retired_packages.py index ac80796..2cf0fac 100644 --- a/tests/plugins/test_clean_retired_packages.py +++ b/tests/plugins/test_clean_retired_packages.py @@ -7,7 +7,6 @@ import toddlers.plugins.clean_retired_packages class TestCleanRetiredPackagesToddler: - toddler_cls = toddlers.plugins.clean_retired_packages.CleanRetiredPackages def test_accepts_topic_invalid(self, toddler): diff --git a/tests/plugins/test_debug.py b/tests/plugins/test_debug.py index 97f35a5..2fa00b2 100644 --- a/tests/plugins/test_debug.py +++ b/tests/plugins/test_debug.py @@ -4,7 +4,6 @@ from toddlers.plugins.debug import DebugToddler class TestDebugToddler: - toddler_cls = DebugToddler def test_accepts_topic(self, toddler): diff --git a/tests/plugins/test_distgit_bugzilla_sync.py b/tests/plugins/test_distgit_bugzilla_sync.py index 5f09235..c3a9bdc 100644 --- a/tests/plugins/test_distgit_bugzilla_sync.py +++ b/tests/plugins/test_distgit_bugzilla_sync.py @@ -64,7 +64,6 @@ def mock_bz_mail_limited(mail, mail_overrides): class TestDistgitBugzillaSyncToddler: - toddler_cls = DistgitBugzillaSync def test_accepts_topic_invalid(self, toddler): diff --git a/tests/plugins/test_flag_ci_pr.py b/tests/plugins/test_flag_ci_pr.py index 0df0de7..0a68db8 100644 --- a/tests/plugins/test_flag_ci_pr.py +++ b/tests/plugins/test_flag_ci_pr.py @@ -8,7 +8,6 @@ from toddlers.plugins.flag_ci_pr import FlagCIPR class TestFlagCIPRToddler: - toddler_cls = FlagCIPR def test_accepts_topic_invalid(self, toddler): diff --git a/tests/plugins/test_flag_commit_build.py b/tests/plugins/test_flag_commit_build.py index 2661196..4823c1b 100644 --- a/tests/plugins/test_flag_commit_build.py +++ b/tests/plugins/test_flag_commit_build.py @@ -8,7 +8,6 @@ from toddlers.plugins.flag_commit_build import FlagCommitBuild class TestFlagCommitBuildToddler: - toddler_cls = FlagCommitBuild def test_accepts_topic_invalid(self, toddler): diff --git a/tests/plugins/test_packager_bugzilla_sync.py b/tests/plugins/test_packager_bugzilla_sync.py index c034a2d..1df5969 100644 --- a/tests/plugins/test_packager_bugzilla_sync.py +++ b/tests/plugins/test_packager_bugzilla_sync.py @@ -6,7 +6,6 @@ from toddlers.plugins.packager_bugzilla_sync import main, PackagerBugzillaSync class TestPackagerBugzillaSyncToddler: - toddler_cls = PackagerBugzillaSync def test_accepts_topic_invalid(self, toddler): diff --git a/tests/plugins/test_packagers_without_bugzilla.py b/tests/plugins/test_packagers_without_bugzilla.py index 1e1b6a8..b3e83ad 100644 --- a/tests/plugins/test_packagers_without_bugzilla.py +++ b/tests/plugins/test_packagers_without_bugzilla.py @@ -6,7 +6,6 @@ from toddlers.plugins.packagers_without_bugzilla import main, PackagersWithoutBu class TestPackagersWithoutBugzillaToddler: - toddler_cls = PackagersWithoutBugzilla def test_accepts_topic_invalid(self, toddler): diff --git a/tests/plugins/test_pdc_import_compose.py b/tests/plugins/test_pdc_import_compose.py index 9b635f7..7b8759a 100644 --- a/tests/plugins/test_pdc_import_compose.py +++ b/tests/plugins/test_pdc_import_compose.py @@ -29,7 +29,6 @@ APACHE_FILE_LIST = """ class TestPDCImportComposeToddler: - toddler_cls = toddlers.plugins.pdc_import_compose.PDCImportCompose def test_accepts_topic_invalid(self, toddler): @@ -932,7 +931,6 @@ class TestPDCImportComposeToddler: class TestPDCImportComposeToddlerCLI: - toddler_cls = toddlers.plugins.pdc_import_compose.PDCImportCompose def test_main_no_args(self, capsys): diff --git a/tests/plugins/test_pdc_modules.py b/tests/plugins/test_pdc_modules.py index eda2795..3f0b7bc 100644 --- a/tests/plugins/test_pdc_modules.py +++ b/tests/plugins/test_pdc_modules.py @@ -10,7 +10,6 @@ import toddlers.plugins.pdc_modules as pdc_modules class TestPDCModulesToddler: - toddler_cls = pdc_modules.PDCModules def test_accepts_topic_invalid(self, toddler): diff --git a/tests/plugins/test_pdc_retired_packages.py b/tests/plugins/test_pdc_retired_packages.py index 95a2c27..edbba33 100644 --- a/tests/plugins/test_pdc_retired_packages.py +++ b/tests/plugins/test_pdc_retired_packages.py @@ -9,7 +9,6 @@ import toddlers.plugins.pdc_retired_packages class TestPDCRetiredPackagesToddler: - toddler_cls = toddlers.plugins.pdc_retired_packages.PDCRetiredPackages def test_accepts_topic_invalid(self, toddler): diff --git a/tests/plugins/test_pdc_update_critpath.py b/tests/plugins/test_pdc_update_critpath.py index 6582264..a2ca616 100644 --- a/tests/plugins/test_pdc_update_critpath.py +++ b/tests/plugins/test_pdc_update_critpath.py @@ -14,7 +14,6 @@ if toddlers.plugins.pdc_update_critpath.dnf is None: class TestPDCUpdateCritpath: - toddler_cls = toddlers.plugins.pdc_update_critpath.PDCUpdateCritpath def test_accepts_topic_invalid(self, toddler): @@ -569,7 +568,6 @@ class TestPDCUpdateCritpath: class TestPDCUpdateCritpathCLI: - toddler_cls = toddlers.plugins.pdc_update_critpath.PDCUpdateCritpath def test_main_no_args(self, capsys): diff --git a/tests/test_base.py b/tests/test_base.py index 6e1d3e0..2a5c695 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -2,7 +2,6 @@ from toddlers.base import ToddlerBase class TestToddlerBase: - toddler_cls = ToddlerBase def test_name(self, toddler): diff --git a/toddlers/plugins/distgit_bugzilla_sync.py b/toddlers/plugins/distgit_bugzilla_sync.py index eae538c..ff3f21f 100644 --- a/toddlers/plugins/distgit_bugzilla_sync.py +++ b/toddlers/plugins/distgit_bugzilla_sync.py @@ -174,7 +174,6 @@ class DistgitBugzillaSync(ToddlerBase): for project in sorted(self.pagure_projects, key=itemgetter("name")): for product in project["products"]: - # Turn the watchers list into something usable by bugzilla cc_list = [] cc_list_lower = [] diff --git a/toddlers/plugins/packagers_without_bugzilla.py b/toddlers/plugins/packagers_without_bugzilla.py index 932a824..7d2b651 100644 --- a/toddlers/plugins/packagers_without_bugzilla.py +++ b/toddlers/plugins/packagers_without_bugzilla.py @@ -187,7 +187,6 @@ class PackagersWithoutBugzilla(ToddlerBase): # Store a list of user with no bugzilla account no_bz_account = [] for user_email in sorted(fas_only): - if not get_bugzilla_user_with_retries(user_email, 0): name = fas_packagers_info.get(user_email) if not name: diff --git a/toddlers/plugins/pdc_update_critpath.py b/toddlers/plugins/pdc_update_critpath.py index eae0158..8439f6f 100644 --- a/toddlers/plugins/pdc_update_critpath.py +++ b/toddlers/plugins/pdc_update_critpath.py @@ -210,7 +210,6 @@ class PDCUpdateCritpath(ToddlerBase): if releases is None: releases = config["releases"] for release in releases: - dnf_version = tuple(map(int, dnf.const.VERSION.split("."))) if dnf_version < (2, 0, 0): raise Exception("This script requires the DNF version 2.0 API.") @@ -224,7 +223,6 @@ class PDCUpdateCritpath(ToddlerBase): _log.info("%s packages found in %s" % (len(pkgs), release)) if not nopdc: - _log.info("Retrieving the PDC branch ids for the list of packages") new_critpath = None cnt = 0 diff --git a/toddlers/utils/bugzilla_system.py b/toddlers/utils/bugzilla_system.py index d4c2aca..5c6bee6 100644 --- a/toddlers/utils/bugzilla_system.py +++ b/toddlers/utils/bugzilla_system.py @@ -235,7 +235,6 @@ def reassign_tickets_to_assignee( for bug in query_results: if bug.assigned_to == old_poc and bug.assigned_to != new_poc: - temp_old_poc = bug.assigned_to temp_new_poc = new_poc if print_fas_names: diff --git a/toddlers/utils/notify.py b/toddlers/utils/notify.py index 74d932c..2e8701a 100644 --- a/toddlers/utils/notify.py +++ b/toddlers/utils/notify.py @@ -7,7 +7,6 @@ _log = logging.getLogger(__name__) def notify_packager(mail_server, admin_email, username, email): - message = f"""Hello {username}, We have identified you[1] as either a Fedora packager or someone who has asked to @@ -52,7 +51,6 @@ The Fedora Account System def notify_admins(mail_server, admin_email, recipients, users): - people = [] for person in users: if person.person.status == "Active":