From 6f0fee827524dd65726a1575e52877cb80086801 Mon Sep 17 00:00:00 2001 From: cswimr Date: Sun, 26 Jan 2025 13:42:57 +0000 Subject: [PATCH] fix(backup): disable SLF001 --- backup/backup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backup/backup.py b/backup/backup.py index 4ba184f..2aafb8c 100644 --- a/backup/backup.py +++ b/backup/backup.py @@ -17,6 +17,9 @@ from redbot.core.bot import Red from redbot.core.utils.chat_formatting import bold, error, humanize_list, text_to_file +# Disable Ruff & Pylint complaining about accessing private members +# That's kind of necessary for this cog to function because the Downloader cog has a limited public API +# ruff: noqa: SLF001 # Private member access # pylint: disable=protected-access class Backup(commands.Cog): """A utility to make reinstalling repositories and cogs after migrating the bot far easier.""" @@ -74,7 +77,7 @@ class Backup(commands.Cog): if cog.repo_name == repo.name: cog_dict = { "name": cog.name, - # "loaded": cog.name in ctx.bot.extensions.keys(), + # "loaded": cog.name in ctx.bot.extensions.keys(), # noqa: ERA001 # this functionality was planned but never implemented due to Red limitations # and the possibility of restoration functionality being added to Core "pinned": cog.pinned,