Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cosmetic tweaks #156

Merged
merged 1 commit into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ops/alert_on_missing_events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ events, and resends reminder alerts at a shorter interval.
Follow [these detailed instructions](https://docs.autokitteh.com/get_started/deployment)
to deploy the project on a self-hosted server.

Also follow the instructions in the [Cloud Usage](#cloud-usage) section above.
Also follow the relevant instructions in the [Cloud Usage](#cloud-usage)
section above.

### Advanced Usage

Expand Down
2 changes: 1 addition & 1 deletion ops/alert_on_session_errors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ ak auth create-token
Follow [these detailed instructions](https://docs.autokitteh.com/get_started/deployment)
to deploy the project on a self-hosted server.

Also follow the instructions in the [Cloud Usage](#cloud-usage) section above.
Also follow steps 3-4 in the [Cloud Usage](#cloud-usage) section above.
2 changes: 1 addition & 1 deletion ops/alert_on_session_errors/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _list_sessions_with_errors():


def _log_error(session):
data = json.dumps(session, indent=True)
data = json.dumps(session, indent=4)
print(data)

pid, did = session["projectId"], session["deploymentId"]
Expand Down
2 changes: 1 addition & 1 deletion purrr/slack_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def initialize_for_github_pr(action: str, pr, sender) -> str:
ID of the created Slack channel.
"""
print(f"Creating Slack channel for {pr.html_url} (PR event action: {action})")
print(json.dumps(pr, indent=2, sort_keys=True))
print(json.dumps(pr, indent=4, sort_keys=True))

name = f"{pr.number}_{slack_helper.normalize_channel_name(pr.title)}"
channel_id = slack_helper.create_channel(name)
Expand Down
8 changes: 4 additions & 4 deletions samples/google/gmail/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _drafts_get(id):
print(f"Error: `{e.reason}`")
return

print(f"```\n{json.dumps(resp, indent=2)}\n```")
print(f"```\n{json.dumps(resp, indent=4)}\n```")


def _drafts_list(query):
Expand All @@ -90,7 +90,7 @@ def _drafts_list(query):
print(f"Result size estimate: `{resp['resultSizeEstimate']}`")

for i, d in enumerate(resp.get("drafts", []), start=1):
print(f"{i}\n```\n{json.dumps(d, indent=2)}\n```")
print(f"{i}\n```\n{json.dumps(d, indent=4)}\n```")

next_page_token = resp.get("nextPageToken")
if next_page_token:
Expand All @@ -109,7 +109,7 @@ def _messages_get(id):
print(f"Error: `{e.reason}`")
return

print(f"```\n{json.dumps(resp, indent=2)}\n```")
print(f"```\n{json.dumps(resp, indent=4)}\n```")


def _messages_list(query):
Expand All @@ -130,7 +130,7 @@ def _messages_list(query):
print(f"Result size estimate: `{resp['resultSizeEstimate']}`")

for i, m in enumerate(resp.get("messages", []), start=1):
print(f"{i}\n```\n{json.dumps(m, indent=2)}\n```")
print(f"{i}\n```\n{json.dumps(m, indent=4)}\n```")

next_page_token = resp.get("nextPageToken")
if next_page_token:
Expand Down
Loading