aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2025-02-15 16:20:39 +0000
committerGravatar Chris Lovering <[email protected]>2025-02-15 16:20:39 +0000
commitec080a3ae2a2e99e762c11a3e643e049de1239e9 (patch)
tree1f6a5829647a30c71bfecf85d6224315e867f881
parentBump deps to latest (diff)
Format code to new ruff rules
-rw-r--r--arthur/exts/cloudflare/zones.py2
-rw-r--r--arthur/exts/directory/ldap.py2
-rw-r--r--arthur/exts/fun/devops_rules.py4
-rw-r--r--arthur/exts/fun/motivation.py2
-rw-r--r--arthur/exts/grafana/github_team_sync.py2
-rw-r--r--arthur/exts/grafana/ldap_team_sync.py4
6 files changed, 8 insertions, 8 deletions
diff --git a/arthur/exts/cloudflare/zones.py b/arthur/exts/cloudflare/zones.py
index 6735f50..0cd2265 100644
--- a/arthur/exts/cloudflare/zones.py
+++ b/arthur/exts/cloudflare/zones.py
@@ -50,7 +50,7 @@ class ZonesView(discord.ui.View):
description_content = f"The cache for `{zone_name}` couldn't be cleared.\n"
if errors := purge_attempt_response["errors"]:
for error in errors:
- description_content += f"`{error["code"]}`: {error["message"]}\n"
+ description_content += f"`{error['code']}`: {error['message']}\n"
message = generate_error_message(description=description_content, emote=":x:")
self.disable_select()
diff --git a/arthur/exts/directory/ldap.py b/arthur/exts/directory/ldap.py
index ed5ae6e..edf5f1a 100644
--- a/arthur/exts/directory/ldap.py
+++ b/arthur/exts/directory/ldap.py
@@ -409,7 +409,7 @@ class LDAP(commands.Cog):
for user in diff_sorted:
prefix = prefixes[user.action]
diff_message += f"{prefix} {self._format_user(user.discord_user, user.ldap_user)}"
- diff_message += f" ({", ".join(user.groups)})\n"
+ diff_message += f" ({', '.join(user.groups)})\n"
diff_message += "```\n"
diff --git a/arthur/exts/fun/devops_rules.py b/arthur/exts/fun/devops_rules.py
index b0f72cd..418c51c 100644
--- a/arthur/exts/fun/devops_rules.py
+++ b/arthur/exts/fun/devops_rules.py
@@ -40,7 +40,7 @@ class Rules(Cog):
output_rules = self.rules.keys()
if not output_rules:
- await ctx.send(f":x: Rule{"s"[: len(rules) ^ 1]} not found.")
+ await ctx.send(f":x: Rule{'s'[: len(rules) ^ 1]} not found.")
return
output = "\n".join(
@@ -48,7 +48,7 @@ class Rules(Cog):
)
await ctx.send(
embed=discord.Embed(
- title=f"Rule{"s"[: len(output_rules) ^ 1]}",
+ title=f"Rule{'s'[: len(output_rules) ^ 1]}",
description=output,
colour=discord.Colour.og_blurple(),
url="https://docs.pydis.wtf/onboarding/rules.html",
diff --git a/arthur/exts/fun/motivation.py b/arthur/exts/fun/motivation.py
index e9f861d..6ab209f 100644
--- a/arthur/exts/fun/motivation.py
+++ b/arthur/exts/fun/motivation.py
@@ -51,7 +51,7 @@ class Motivation(commands.Cog):
continue
await self.devops_channel.send(
- f"[Today's mission](https://www.youtube.com/shorts/{video["id"]["videoId"]})"
+ f"[Today's mission](https://www.youtube.com/shorts/{video['id']['videoId']})"
)
break
else:
diff --git a/arthur/exts/grafana/github_team_sync.py b/arthur/exts/grafana/github_team_sync.py
index 14a89d9..cfc1e77 100644
--- a/arthur/exts/grafana/github_team_sync.py
+++ b/arthur/exts/grafana/github_team_sync.py
@@ -116,7 +116,7 @@ class GrafanaGitHubTeamSync(commands.Cog):
colour=discord.Colour.blue(),
)
for team in grafana_teams:
- logger.debug(f"Processing {team["name"]}")
+ logger.debug(f"Processing {team['name']}")
try:
figures = await self._sync_teams(team)
except aiohttp.ClientResponseError as e:
diff --git a/arthur/exts/grafana/ldap_team_sync.py b/arthur/exts/grafana/ldap_team_sync.py
index f8b3ab0..55bbbd8 100644
--- a/arthur/exts/grafana/ldap_team_sync.py
+++ b/arthur/exts/grafana/ldap_team_sync.py
@@ -127,11 +127,11 @@ class GrafanaLDAPTeamSync(commands.Cog):
colour=discord.Colour.blue(),
)
for team in grafana_teams:
- logger.debug(f"Processing {team["name"]}")
+ logger.debug(f"Processing {team['name']}")
try:
figures = await self._sync_teams(team)
except aiohttp.ClientResponseError as e:
- logger.opt(exception=e).error(f"Error whilst procesing Grafana team {team["name"]}")
+ logger.opt(exception=e).error(f"Error whilst procesing Grafana team {team['name']}")
if channel:
await channel.send(e)
continue