aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arthur/exts/fun/devops_rules.py4
-rw-r--r--pyproject.toml2
2 files changed, 4 insertions, 2 deletions
diff --git a/arthur/exts/fun/devops_rules.py b/arthur/exts/fun/devops_rules.py
index cbfb6ce..fa0e1c4 100644
--- a/arthur/exts/fun/devops_rules.py
+++ b/arthur/exts/fun/devops_rules.py
@@ -36,7 +36,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(
@@ -44,7 +44,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://www.notion.so/pythondiscord/Rules-149bc48f6f7947afadd8036f11d4e9a7",
diff --git a/pyproject.toml b/pyproject.toml
index 1f91cf8..e383e44 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -52,3 +52,5 @@ ignore = [
"D206", "E111", "E114", "E117", "E501", "ISC001", "Q000", "Q001", "Q002", "Q003", "W191",
]
line-length = 100
+unsafe-fixes = true
+preview = true