aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arthur/exts/cloudflare/zones.py2
-rw-r--r--arthur/exts/fun/devops_rules.py4
-rw-r--r--arthur/exts/grafana/team_sync.py2
-rw-r--r--pyproject.toml3
4 files changed, 6 insertions, 5 deletions
diff --git a/arthur/exts/cloudflare/zones.py b/arthur/exts/cloudflare/zones.py
index 8a6badc..8a21ad1 100644
--- a/arthur/exts/cloudflare/zones.py
+++ b/arthur/exts/cloudflare/zones.py
@@ -49,7 +49,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/fun/devops_rules.py b/arthur/exts/fun/devops_rules.py
index 16f47e7..14bccde 100644
--- a/arthur/exts/fun/devops_rules.py
+++ b/arthur/exts/fun/devops_rules.py
@@ -38,7 +38,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(
@@ -46,7 +46,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://python-discord.github.io/infra/docs/onboarding/rules/",
diff --git a/arthur/exts/grafana/team_sync.py b/arthur/exts/grafana/team_sync.py
index 20e059e..93d62c0 100644
--- a/arthur/exts/grafana/team_sync.py
+++ b/arthur/exts/grafana/team_sync.py
@@ -128,7 +128,7 @@ class GrafanaTeamSync(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/pyproject.toml b/pyproject.toml
index 52a10c9..7f8e4ba 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -41,11 +41,12 @@ requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
-target-version = "py311"
+target-version = "py312"
extend-exclude = [".cache"]
line-length = 100
unsafe-fixes = true
preview = true
+output-format = "concise"
[tool.ruff.lint]
select = ["ALL"]