Skip to content

Commit

Permalink
chore: Run edx_lint update
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
feanil committed Apr 16, 2024
1 parent 29b5b76 commit 7061c61
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion completion/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
)
Expand Down
7 changes: 4 additions & 3 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
# SERIOUSLY.
#
# ------------------------------
# Generated by edx-lint version: 5.2.5
# Generated by edx-lint version: 5.3.6
# ------------------------------
[MASTER]
ignore = migrations
Expand Down Expand Up @@ -259,6 +259,7 @@ enable =
useless-suppression,
disable =
bad-indentation,
broad-exception-raised,
consider-using-f-string,
duplicate-code,
file-ignored,
Expand Down Expand Up @@ -383,6 +384,6 @@ ext-import-graph =
int-import-graph =

[EXCEPTIONS]
overgeneral-exceptions = Exception
overgeneral-exceptions = builtins.Exception

# c0857a3261a064e2a276a399b5ec398fd1738e0f
# 94445ea91ee8c0de6c53ae1fa510a8a063a86b78
4 changes: 3 additions & 1 deletion pylintrc_tweaks
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7061c61

Please sign in to comment.