Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and majamassarini committed Jan 13, 2025
1 parent 436c86f commit eec4a85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
10 changes: 2 additions & 8 deletions packit_service/worker/helpers/build/build_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,7 @@ def job_build(self) -> Optional[JobConfig]:
return None
if not self._job_build:
for job in [self.job_config, *self.package_config.jobs]:
if (
job.type == self.job_type_build
and self.is_job_config_trigger_matching(job)
):
if job.type == self.job_type_build and self.is_job_config_trigger_matching(job):
self._job_build = job
break
return self._job_build
Expand All @@ -173,10 +170,7 @@ def job_tests_all(self) -> list[JobConfig]:
self._job_tests_all = [
job
for job in self.package_config.jobs
if (
job.type == self.job_type_test
and self.is_job_config_trigger_matching(job)
)
if (job.type == self.job_type_test and self.is_job_config_trigger_matching(job))
]

return self._job_tests_all
Expand Down
2 changes: 1 addition & 1 deletion packit_service/worker/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

import celery
from ogr.exceptions import GithubAppNotInstalledError

from packit.config import JobConfig, JobConfigTriggerType, JobConfigView, JobType
from packit.utils import nested_get

from packit_service.config import PackageConfig, PackageConfigGetter, ServiceConfig
from packit_service.constants import (
COMMENT_REACTION,
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,8 @@
),
],
{CoprBuildHandler, KojiBuildHandler},
id="config=build_for_pr+upstream_koji_build_for_pr" "&pull_request&PullRequestGithubEvent",
id="config=build_for_pr+upstream_koji_build_for_pr"
"&pull_request&PullRequestGithubEvent",
),
pytest.param(
CoprBuildStartEvent,
Expand Down

0 comments on commit eec4a85

Please sign in to comment.