Skip to content

Commit

Permalink
newlines.
Browse files Browse the repository at this point in the history
  • Loading branch information
julialawrence committed Nov 2, 2023
1 parent e16a572 commit e81fd10
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions cfr.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@
# Output the Change Failure Rate
logger.info(f"Total Workflow Runs: {total_workflow_runs}")
logger.info(f"Total Unsuccessful Runs: {total_unsuccessful_runs}")
logger.info(f"Change Failure Rate for {filename}: {failure_rate:.2f}%")
logger.info("\n---------------------------\n")
logger.info(f"\nChange Failure Rate for {filename}: {failure_rate:.2f}%")

print(f"Total Workflow Runs: {total_workflow_runs}")
print(f"Total Unsuccessful Runs: {total_unsuccessful_runs}")
Expand Down
3 changes: 1 addition & 2 deletions df.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@

if deployment_frequency is not None:
print(f"\033[1m\033[32mDaily deployment frequency for {filename}: {deployment_frequency:.2f} deployments/day\033[0m")
logger.info(f"Daily deployment frequency for {filename}: {deployment_frequency:.2f} deployments/day")
logger.info("\n---------------------------\n")
logger.info(f"\nDaily deployment frequency for {filename}: {deployment_frequency:.2f} deployments/day")
else:
print(f"\033[1m\033[32m{filename} does not use github actions for deployments\033[0m")
logger.info(f"{filename} does not use github actions for deployments")
3 changes: 1 addition & 2 deletions ltfc.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,12 @@
)
print(message)
message = (
f"Mean lead time for {filename} team over "
f"\nMean lead time for {filename} team over "
f"{team_merged_pull_requests} merged pull requests: {mean_lead_time.days} days, "
f"{mean_lead_time.seconds // 3600} hours, "
f"{(mean_lead_time.seconds % 3600) // 60}"
)
logger.info(message)
logger.info("\n---------------------------\n")

else:
print("No merged pull requests found.")
Expand Down
3 changes: 1 addition & 2 deletions mttr.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@
hours = seconds // 3600
minutes = (seconds % 3600) // 60
print(f"\033[32m\033[1mMean time to recovery for {filename}: {days} days, {hours} hours, {minutes} minutes\033[0m")
logger.info(f"Mean time to recovery for {filename}: {days} days, {hours} hours, {minutes} minutes")
logger.info("\n---------------------------\n")
logger.info(f"\nMean time to recovery for {filename}: {days} days, {hours} hours, {minutes} minutes")
else:
print("No unsuccessful workflow runs found in the last 90 days.")
logger.info("No unsuccessful workflow runs found in the last 90 days.")

0 comments on commit e81fd10

Please sign in to comment.