From 7061c616ad2ae101b25c334d8f7080a52bcc32f7 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Tue, 16 Apr 2024 11:11:46 -0400 Subject: [PATCH] chore: Run `edx_lint update` * Also update local tweaks because one of the things we were supressing was moved to an optional extension. * Fix a pylint violation that crops up in Python 3.12 --- completion/tests/test_models.py | 2 +- pylintrc | 7 ++++--- pylintrc_tweaks | 4 +++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/completion/tests/test_models.py b/completion/tests/test_models.py index 57326c24..69f292d2 100644 --- a/completion/tests/test_models.py +++ b/completion/tests/test_models.py @@ -245,7 +245,7 @@ def _create_test_completions(self, user): models.BlockCompletion.objects.submit_batch_completion( user, [ - (block, float(f"0.{randint(1,9)}")) + (block, float(f"0.{randint(1, 9)}")) for block in self.blocks + self.other_blocks ] ) diff --git a/pylintrc b/pylintrc index e3c34bc2..e64df332 100644 --- a/pylintrc +++ b/pylintrc @@ -64,7 +64,7 @@ # SERIOUSLY. # # ------------------------------ -# Generated by edx-lint version: 5.2.5 +# Generated by edx-lint version: 5.3.6 # ------------------------------ [MASTER] ignore = migrations @@ -259,6 +259,7 @@ enable = useless-suppression, disable = bad-indentation, + broad-exception-raised, consider-using-f-string, duplicate-code, file-ignored, @@ -383,6 +384,6 @@ ext-import-graph = int-import-graph = [EXCEPTIONS] -overgeneral-exceptions = Exception +overgeneral-exceptions = builtins.Exception -# c0857a3261a064e2a276a399b5ec398fd1738e0f +# 94445ea91ee8c0de6c53ae1fa510a8a063a86b78 diff --git a/pylintrc_tweaks b/pylintrc_tweaks index d344316a..b23aa089 100644 --- a/pylintrc_tweaks +++ b/pylintrc_tweaks @@ -5,6 +5,8 @@ load-plugins = edx_lint.pylint,pylint_django,pylint_celery [MESSAGES CONTROL] disable+ = - no-self-use, logging-format-interpolation, useless-suppression, + +disable- = + no-self-use