From 35bc03dd108bf093b1a26366f7a55f7ebda71e88 Mon Sep 17 00:00:00 2001 From: William Ballenthin Date: Tue, 24 Aug 2021 12:40:42 -0600 Subject: [PATCH] pep8 --- .github/scripts/changelog_author.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/scripts/changelog_author.py b/.github/scripts/changelog_author.py index 96527fa6..1e24d58c 100644 --- a/.github/scripts/changelog_author.py +++ b/.github/scripts/changelog_author.py @@ -1,12 +1,13 @@ -import yaml import sys +import yaml + rule_file = sys.argv[1] -with open(rule_file, 'r') as stream: +with open(rule_file, "r") as stream: rule_yaml = yaml.safe_load(stream) author_value = rule_yaml["rule"]["meta"]["author"] -if isinstance(author_value, list): # list of authors +if isinstance(author_value, list): # list of authors print(" ".join(author_value)) -else: # one author +else: # one author print(author_value)