Skip to content

Commit

Permalink
Follow idiomatic Python coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Sep 19, 2024
1 parent 32039da commit f820611
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions update-since-todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def analyze_files(commits_and_tags, dry_run=False):
"*.js",
]

runningInCI = os.environ.get("CI", "false") == "true"
if runningInCI:
is_ci = "CI" in os.environ
if is_ci:
print("<details><summary>Detailed output</summary>\n\n")
with subprocess.Popen(cmd, stdout=subprocess.PIPE) as proc:
for line in io.TextIOWrapper(proc.stdout):
Expand All @@ -113,7 +113,7 @@ def analyze_files(commits_and_tags, dry_run=False):
if retcode:
raise subprocess.CalledProcessError(retcode, cmd)
print()
if runningInCI:
if is_ci:
print("</details>\n")


Expand Down

0 comments on commit f820611

Please sign in to comment.