Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

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] committed Jun 17, 2024
1 parent 2cbdd16 commit 3067bf5
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions hardly/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,11 @@ def run_source_git_pr_to_dist_git_pr_handler(
job_config_obj = load_job_config(job_config)
packages_config_obj = load_package_config(package_config)
handler = SourceGitPRToDistGitPRHandler(
package_config=packages_config_obj.get_package_config_for(job_config_obj)
if packages_config_obj
else None,
package_config=(
packages_config_obj.get_package_config_for(job_config_obj)
if packages_config_obj
else None
),
job_config=job_config_obj,
event=event,
)
Expand All @@ -129,9 +131,11 @@ def run_gitlab_ci_to_source_git_pr_handler(
job_config_obj = load_job_config(job_config)
packages_config_obj = load_package_config(package_config)
handler = GitlabCIToSourceGitPRHandler(
package_config=packages_config_obj.get_package_config_for(job_config_obj)
if packages_config_obj
else None,
package_config=(
packages_config_obj.get_package_config_for(job_config_obj)
if packages_config_obj
else None
),
job_config=job_config_obj,
event=event,
)
Expand All @@ -145,9 +149,11 @@ def run_pagure_ci_to_source_git_pr_handler(
job_config_obj = load_job_config(job_config)
packages_config_obj = load_package_config(package_config)
handler = PagureCIToSourceGitPRHandler(
package_config=packages_config_obj.get_package_config_for(job_config_obj)
if packages_config_obj
else None,
package_config=(
packages_config_obj.get_package_config_for(job_config_obj)
if packages_config_obj
else None
),
job_config=job_config_obj,
event=event,
)
Expand All @@ -161,9 +167,11 @@ def run_dist_git_to_source_git_pr_handler(
job_config_obj = load_job_config(job_config)
packages_config_obj = load_package_config(package_config)
handler = DistGitToSourceGitPRHandler(
package_config=packages_config_obj.get_package_config_for(job_config_obj)
if packages_config_obj
else None,
package_config=(
packages_config_obj.get_package_config_for(job_config_obj)
if packages_config_obj
else None
),
job_config=job_config_obj,
event=event,
)
Expand Down

0 comments on commit 3067bf5

Please sign in to comment.