Fix formatting for for black > 23

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2023-02-03 14:33:39 +01:00
parent bb2bacd0b9
commit d9c03e08ce
18 changed files with 0 additions and 22 deletions

View file

@ -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):

View file

@ -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):

View file

@ -4,7 +4,6 @@ from toddlers.plugins.debug import DebugToddler
class TestDebugToddler:
toddler_cls = DebugToddler
def test_accepts_topic(self, toddler):

View file

@ -64,7 +64,6 @@ def mock_bz_mail_limited(mail, mail_overrides):
class TestDistgitBugzillaSyncToddler:
toddler_cls = DistgitBugzillaSync
def test_accepts_topic_invalid(self, toddler):

View file

@ -8,7 +8,6 @@ from toddlers.plugins.flag_ci_pr import FlagCIPR
class TestFlagCIPRToddler:
toddler_cls = FlagCIPR
def test_accepts_topic_invalid(self, toddler):

View file

@ -8,7 +8,6 @@ from toddlers.plugins.flag_commit_build import FlagCommitBuild
class TestFlagCommitBuildToddler:
toddler_cls = FlagCommitBuild
def test_accepts_topic_invalid(self, toddler):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -2,7 +2,6 @@ from toddlers.base import ToddlerBase
class TestToddlerBase:
toddler_cls = ToddlerBase
def test_name(self, toddler):

View file

@ -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 = []

View file

@ -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:

View file

@ -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

View file

@ -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:

View file

@ -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":