Skip to content

Commit

Permalink
Enable unsafe fixes and preview ruff rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Nov 9, 2023
1 parent 40f8986 commit aafb66c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arthur/exts/fun/devops_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ async def rules_group(self, ctx: Context, rules: Greedy[int]) -> None:
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(
f"{key}: {value}" for key, value in self.rules.items() if key in output_rules
)
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",
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ ignore = [
"D206", "E111", "E114", "E117", "E501", "ISC001", "Q000", "Q001", "Q002", "Q003", "W191",
]
line-length = 100
unsafe-fixes = true
preview = true

0 comments on commit aafb66c

Please sign in to comment.