Fix formatting for for black > 23
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
parent
bb2bacd0b9
commit
d9c03e08ce
18 changed files with 0 additions and 22 deletions
|
@ -7,7 +7,6 @@ import toddlers.plugins.check_email_overrides
|
||||||
|
|
||||||
|
|
||||||
class TestCheckEmailOverridesToddler:
|
class TestCheckEmailOverridesToddler:
|
||||||
|
|
||||||
toddler_cls = toddlers.plugins.check_email_overrides.CheckEmailOverrides
|
toddler_cls = toddlers.plugins.check_email_overrides.CheckEmailOverrides
|
||||||
|
|
||||||
def test_accepts_topic_invalid(self, toddler):
|
def test_accepts_topic_invalid(self, toddler):
|
||||||
|
|
|
@ -7,7 +7,6 @@ import toddlers.plugins.clean_retired_packages
|
||||||
|
|
||||||
|
|
||||||
class TestCleanRetiredPackagesToddler:
|
class TestCleanRetiredPackagesToddler:
|
||||||
|
|
||||||
toddler_cls = toddlers.plugins.clean_retired_packages.CleanRetiredPackages
|
toddler_cls = toddlers.plugins.clean_retired_packages.CleanRetiredPackages
|
||||||
|
|
||||||
def test_accepts_topic_invalid(self, toddler):
|
def test_accepts_topic_invalid(self, toddler):
|
||||||
|
|
|
@ -4,7 +4,6 @@ from toddlers.plugins.debug import DebugToddler
|
||||||
|
|
||||||
|
|
||||||
class TestDebugToddler:
|
class TestDebugToddler:
|
||||||
|
|
||||||
toddler_cls = DebugToddler
|
toddler_cls = DebugToddler
|
||||||
|
|
||||||
def test_accepts_topic(self, toddler):
|
def test_accepts_topic(self, toddler):
|
||||||
|
|
|
@ -64,7 +64,6 @@ def mock_bz_mail_limited(mail, mail_overrides):
|
||||||
|
|
||||||
|
|
||||||
class TestDistgitBugzillaSyncToddler:
|
class TestDistgitBugzillaSyncToddler:
|
||||||
|
|
||||||
toddler_cls = DistgitBugzillaSync
|
toddler_cls = DistgitBugzillaSync
|
||||||
|
|
||||||
def test_accepts_topic_invalid(self, toddler):
|
def test_accepts_topic_invalid(self, toddler):
|
||||||
|
|
|
@ -8,7 +8,6 @@ from toddlers.plugins.flag_ci_pr import FlagCIPR
|
||||||
|
|
||||||
|
|
||||||
class TestFlagCIPRToddler:
|
class TestFlagCIPRToddler:
|
||||||
|
|
||||||
toddler_cls = FlagCIPR
|
toddler_cls = FlagCIPR
|
||||||
|
|
||||||
def test_accepts_topic_invalid(self, toddler):
|
def test_accepts_topic_invalid(self, toddler):
|
||||||
|
|
|
@ -8,7 +8,6 @@ from toddlers.plugins.flag_commit_build import FlagCommitBuild
|
||||||
|
|
||||||
|
|
||||||
class TestFlagCommitBuildToddler:
|
class TestFlagCommitBuildToddler:
|
||||||
|
|
||||||
toddler_cls = FlagCommitBuild
|
toddler_cls = FlagCommitBuild
|
||||||
|
|
||||||
def test_accepts_topic_invalid(self, toddler):
|
def test_accepts_topic_invalid(self, toddler):
|
||||||
|
|
|
@ -6,7 +6,6 @@ from toddlers.plugins.packager_bugzilla_sync import main, PackagerBugzillaSync
|
||||||
|
|
||||||
|
|
||||||
class TestPackagerBugzillaSyncToddler:
|
class TestPackagerBugzillaSyncToddler:
|
||||||
|
|
||||||
toddler_cls = PackagerBugzillaSync
|
toddler_cls = PackagerBugzillaSync
|
||||||
|
|
||||||
def test_accepts_topic_invalid(self, toddler):
|
def test_accepts_topic_invalid(self, toddler):
|
||||||
|
|
|
@ -6,7 +6,6 @@ from toddlers.plugins.packagers_without_bugzilla import main, PackagersWithoutBu
|
||||||
|
|
||||||
|
|
||||||
class TestPackagersWithoutBugzillaToddler:
|
class TestPackagersWithoutBugzillaToddler:
|
||||||
|
|
||||||
toddler_cls = PackagersWithoutBugzilla
|
toddler_cls = PackagersWithoutBugzilla
|
||||||
|
|
||||||
def test_accepts_topic_invalid(self, toddler):
|
def test_accepts_topic_invalid(self, toddler):
|
||||||
|
|
|
@ -29,7 +29,6 @@ APACHE_FILE_LIST = """
|
||||||
|
|
||||||
|
|
||||||
class TestPDCImportComposeToddler:
|
class TestPDCImportComposeToddler:
|
||||||
|
|
||||||
toddler_cls = toddlers.plugins.pdc_import_compose.PDCImportCompose
|
toddler_cls = toddlers.plugins.pdc_import_compose.PDCImportCompose
|
||||||
|
|
||||||
def test_accepts_topic_invalid(self, toddler):
|
def test_accepts_topic_invalid(self, toddler):
|
||||||
|
@ -932,7 +931,6 @@ class TestPDCImportComposeToddler:
|
||||||
|
|
||||||
|
|
||||||
class TestPDCImportComposeToddlerCLI:
|
class TestPDCImportComposeToddlerCLI:
|
||||||
|
|
||||||
toddler_cls = toddlers.plugins.pdc_import_compose.PDCImportCompose
|
toddler_cls = toddlers.plugins.pdc_import_compose.PDCImportCompose
|
||||||
|
|
||||||
def test_main_no_args(self, capsys):
|
def test_main_no_args(self, capsys):
|
||||||
|
|
|
@ -10,7 +10,6 @@ import toddlers.plugins.pdc_modules as pdc_modules
|
||||||
|
|
||||||
|
|
||||||
class TestPDCModulesToddler:
|
class TestPDCModulesToddler:
|
||||||
|
|
||||||
toddler_cls = pdc_modules.PDCModules
|
toddler_cls = pdc_modules.PDCModules
|
||||||
|
|
||||||
def test_accepts_topic_invalid(self, toddler):
|
def test_accepts_topic_invalid(self, toddler):
|
||||||
|
|
|
@ -9,7 +9,6 @@ import toddlers.plugins.pdc_retired_packages
|
||||||
|
|
||||||
|
|
||||||
class TestPDCRetiredPackagesToddler:
|
class TestPDCRetiredPackagesToddler:
|
||||||
|
|
||||||
toddler_cls = toddlers.plugins.pdc_retired_packages.PDCRetiredPackages
|
toddler_cls = toddlers.plugins.pdc_retired_packages.PDCRetiredPackages
|
||||||
|
|
||||||
def test_accepts_topic_invalid(self, toddler):
|
def test_accepts_topic_invalid(self, toddler):
|
||||||
|
|
|
@ -14,7 +14,6 @@ if toddlers.plugins.pdc_update_critpath.dnf is None:
|
||||||
|
|
||||||
|
|
||||||
class TestPDCUpdateCritpath:
|
class TestPDCUpdateCritpath:
|
||||||
|
|
||||||
toddler_cls = toddlers.plugins.pdc_update_critpath.PDCUpdateCritpath
|
toddler_cls = toddlers.plugins.pdc_update_critpath.PDCUpdateCritpath
|
||||||
|
|
||||||
def test_accepts_topic_invalid(self, toddler):
|
def test_accepts_topic_invalid(self, toddler):
|
||||||
|
@ -569,7 +568,6 @@ class TestPDCUpdateCritpath:
|
||||||
|
|
||||||
|
|
||||||
class TestPDCUpdateCritpathCLI:
|
class TestPDCUpdateCritpathCLI:
|
||||||
|
|
||||||
toddler_cls = toddlers.plugins.pdc_update_critpath.PDCUpdateCritpath
|
toddler_cls = toddlers.plugins.pdc_update_critpath.PDCUpdateCritpath
|
||||||
|
|
||||||
def test_main_no_args(self, capsys):
|
def test_main_no_args(self, capsys):
|
||||||
|
|
|
@ -2,7 +2,6 @@ from toddlers.base import ToddlerBase
|
||||||
|
|
||||||
|
|
||||||
class TestToddlerBase:
|
class TestToddlerBase:
|
||||||
|
|
||||||
toddler_cls = ToddlerBase
|
toddler_cls = ToddlerBase
|
||||||
|
|
||||||
def test_name(self, toddler):
|
def test_name(self, toddler):
|
||||||
|
|
|
@ -174,7 +174,6 @@ class DistgitBugzillaSync(ToddlerBase):
|
||||||
|
|
||||||
for project in sorted(self.pagure_projects, key=itemgetter("name")):
|
for project in sorted(self.pagure_projects, key=itemgetter("name")):
|
||||||
for product in project["products"]:
|
for product in project["products"]:
|
||||||
|
|
||||||
# Turn the watchers list into something usable by bugzilla
|
# Turn the watchers list into something usable by bugzilla
|
||||||
cc_list = []
|
cc_list = []
|
||||||
cc_list_lower = []
|
cc_list_lower = []
|
||||||
|
|
|
@ -187,7 +187,6 @@ class PackagersWithoutBugzilla(ToddlerBase):
|
||||||
# Store a list of user with no bugzilla account
|
# Store a list of user with no bugzilla account
|
||||||
no_bz_account = []
|
no_bz_account = []
|
||||||
for user_email in sorted(fas_only):
|
for user_email in sorted(fas_only):
|
||||||
|
|
||||||
if not get_bugzilla_user_with_retries(user_email, 0):
|
if not get_bugzilla_user_with_retries(user_email, 0):
|
||||||
name = fas_packagers_info.get(user_email)
|
name = fas_packagers_info.get(user_email)
|
||||||
if not name:
|
if not name:
|
||||||
|
|
|
@ -210,7 +210,6 @@ class PDCUpdateCritpath(ToddlerBase):
|
||||||
if releases is None:
|
if releases is None:
|
||||||
releases = config["releases"]
|
releases = config["releases"]
|
||||||
for release in releases:
|
for release in releases:
|
||||||
|
|
||||||
dnf_version = tuple(map(int, dnf.const.VERSION.split(".")))
|
dnf_version = tuple(map(int, dnf.const.VERSION.split(".")))
|
||||||
if dnf_version < (2, 0, 0):
|
if dnf_version < (2, 0, 0):
|
||||||
raise Exception("This script requires the DNF version 2.0 API.")
|
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))
|
_log.info("%s packages found in %s" % (len(pkgs), release))
|
||||||
|
|
||||||
if not nopdc:
|
if not nopdc:
|
||||||
|
|
||||||
_log.info("Retrieving the PDC branch ids for the list of packages")
|
_log.info("Retrieving the PDC branch ids for the list of packages")
|
||||||
new_critpath = None
|
new_critpath = None
|
||||||
cnt = 0
|
cnt = 0
|
||||||
|
|
|
@ -235,7 +235,6 @@ def reassign_tickets_to_assignee(
|
||||||
|
|
||||||
for bug in query_results:
|
for bug in query_results:
|
||||||
if bug.assigned_to == old_poc and bug.assigned_to != new_poc:
|
if bug.assigned_to == old_poc and bug.assigned_to != new_poc:
|
||||||
|
|
||||||
temp_old_poc = bug.assigned_to
|
temp_old_poc = bug.assigned_to
|
||||||
temp_new_poc = new_poc
|
temp_new_poc = new_poc
|
||||||
if print_fas_names:
|
if print_fas_names:
|
||||||
|
|
|
@ -7,7 +7,6 @@ _log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def notify_packager(mail_server, admin_email, username, email):
|
def notify_packager(mail_server, admin_email, username, email):
|
||||||
|
|
||||||
message = f"""Hello {username},
|
message = f"""Hello {username},
|
||||||
|
|
||||||
We have identified you[1] as either a Fedora packager or someone who has asked to
|
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):
|
def notify_admins(mail_server, admin_email, recipients, users):
|
||||||
|
|
||||||
people = []
|
people = []
|
||||||
for person in users:
|
for person in users:
|
||||||
if person.person.status == "Active":
|
if person.person.status == "Active":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue