Skip to content

Commit 1ecc515

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e8c2945 commit 1ecc515

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

packit_service/worker/events/comment.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,8 @@ def build_targets_override(self) -> Optional[set[tuple[str, str]]]:
100100
# see that something has failed and only for those targets the
101101
# tests will be submitted.
102102
if (
103-
not self._build_targets_override
104-
and "rebuild-failed" in self.comment
105-
or "retest-failed" in self.comment
106-
):
103+
not self._build_targets_override and "rebuild-failed" in self.comment
104+
) or "retest-failed" in self.comment:
107105
self._build_targets_override = (
108106
super().get_all_build_targets_by_status(
109107
statuses_to_filter_with=[BuildStatus.failure],

packit_service/worker/helpers/sync_release/sync_release.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,12 @@ def job(self) -> Optional[JobConfig]:
108108
self._db_project_object.job_config_trigger_type == job.trigger
109109
# pull-from-upstream can be retriggered by a dist-git PR comment,
110110
# in which case the trigger types don't match
111-
or job.type == JobType.pull_from_upstream
112-
and self._db_project_object.job_config_trigger_type
113-
== JobConfigTriggerType.pull_request
114-
and job.trigger == JobConfigTriggerType.release
111+
or (
112+
job.type == JobType.pull_from_upstream
113+
and self._db_project_object.job_config_trigger_type
114+
== JobConfigTriggerType.pull_request
115+
and job.trigger == JobConfigTriggerType.release
116+
)
115117
)
116118
):
117119
self._job = job

tests/integration/test_bodhi_update.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,8 +1148,7 @@ def _create_update(dist_git_branch, update_type, koji_builds, sidetag, alias):
11481148
0
11491149
if missing_dependency
11501150
or non_unique_builds
1151-
or existing_update
1152-
and " " in existing_update.koji_nvrs
1151+
or (existing_update and " " in existing_update.koji_nvrs)
11531152
else 1
11541153
),
11551154
)

0 commit comments

Comments
 (0)