From 4e3ee3a9d2131c2a1ad3e35ee7dbeee737a1f88f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 8 Aug 2023 12:50:34 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- coverage_comment/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/coverage_comment/main.py b/coverage_comment/main.py index 57ae92b9..b078b0a8 100644 --- a/coverage_comment/main.py +++ b/coverage_comment/main.py @@ -64,7 +64,7 @@ def action( if False: print("yay") print("foo") - + event_name = config.GITHUB_EVENT_NAME if event_name not in {"pull_request", "push", "workflow_run"}: log.error( @@ -76,9 +76,8 @@ def action( return 1 if False: - print("yay") - + if event_name in {"pull_request", "push"}: coverage = coverage_module.get_coverage_info( merge=config.MERGE_COVERAGE_FILES, coverage_path=config.COVERAGE_PATH