Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3.11 & 3.12 #277

Merged
merged 6 commits into from
Apr 16, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
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
feanil committed Apr 16, 2024
commit a91cf085a0d9b7441401dc8533d2416e5024e7fc
2 changes: 1 addition & 1 deletion completion/tests/test_models.py
Original file line number Diff line number Diff line change
@@ -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
]
)
7 changes: 4 additions & 3 deletions pylintrc
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion pylintrc_tweaks
Original file line number Diff line number Diff line change
@@ -5,6 +5,5 @@ load-plugins = edx_lint.pylint,pylint_django,pylint_celery

[MESSAGES CONTROL]
disable+ =
no-self-use,
logging-format-interpolation,
useless-suppression,