style(repo): ruff fixes
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 42s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 47s

This commit is contained in:
cswimr 2025-01-26 14:13:37 +00:00
parent 9df7f15bbe
commit ea5f51892a
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
7 changed files with 39 additions and 38 deletions

View file

@ -105,5 +105,5 @@ class HotReloadHandler(RegexMatchingEventHandler):
"""Reload modified cog."""
core_logic = CoreLogic(bot=self.bot)
self.logger.info("Reloading cogs: %s", humanize_list(cog_names, style="unit"))
await core_logic._reload(pkg_names=cog_names)
await core_logic._reload(pkg_names=cog_names) # noqa: SLF001 # We have to use this private method because there is no public API to reload other cogs
self.logger.info("Reloaded cogs: %s", humanize_list(cog_names, style="unit"))