Skip to content
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
4 changes: 2 additions & 2 deletions bot/exts/recruitment/talentpool/_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ async def _edit_nomination_reason(
await ctx.send(f":x: {target.mention} doesn't have an active nomination.")
return

log.trace(f"Changing reason for nomination with id {nomination_id} of actor {actor} to {repr(reason)}")
log.trace(f"Changing reason for nomination with id {nomination_id} of actor {actor} to {reason!r}")

try:
nomination = await self.api.edit_nomination_entry(nomination_id, actor_id=actor.id, reason=reason)
Expand All @@ -500,7 +500,7 @@ async def edit_end_reason_command(self, ctx: Context, nomination_id: int, *, rea
await ctx.send(f":x: The reason's length must not exceed {REASON_MAX_CHARS} characters.")
return

log.trace(f"Changing end reason for nomination with id {nomination_id} to {repr(reason)}")
log.trace(f"Changing end reason for nomination with id {nomination_id} to {reason!r}")
try:
nomination = await self.api.edit_nomination(nomination_id, end_reason=reason)
except ResponseCodeError as e:
Expand Down
2 changes: 1 addition & 1 deletion bot/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ async def paginate(

for emoji in PAGINATION_EMOJI:
# Add all the applicable emoji to the message
log.trace(f"Adding reaction: {repr(emoji)}")
log.trace(f"Adding reaction: {emoji!r}")
await message.add_reaction(emoji)

check = partial(
Expand Down
78 changes: 39 additions & 39 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pytest = "7.3.1"
pytest-cov = "4.0.0"
pytest-subtests = "0.11.0"
pytest-xdist = "3.3.1"
ruff = "0.0.265"
ruff = "0.0.267"
taskipy = "1.10.4"


Expand Down
2 changes: 1 addition & 1 deletion tests/bot/utils/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async def test_paste_returns_correct_url_on_success(self):
self.bot.http_session.post.return_value.__aenter__.return_value = response

for expected_output, extension in test_cases:
with self.subTest(msg=f"Send contents with extension {repr(extension)}"):
with self.subTest(msg=f"Send contents with extension {extension!r}"):
self.assertEqual(
await send_to_paste_service("", extension=extension),
expected_output
Expand Down