Skip to content

Commit

Permalink
Linting fixes after ruff upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Jun 3, 2024
1 parent 41f1c01 commit 1376101
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lms/resources/_js_config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _h_user(self):
def _application_instance(self):
return self._lti_user.application_instance

def add_document_url( # pylint: disable=too-complex,too-many-branches,useless-suppression # noqa: C901, PLR0912
def add_document_url( # pylint: disable=too-complex,too-many-branches,useless-suppression # noqa: PLR0912
self, document_url
) -> None:
"""
Expand Down
2 changes: 1 addition & 1 deletion lms/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def forget(self, request):

@staticmethod
@lru_cache(maxsize=1)
def get_policy(request: Request): # noqa: C901, PLR0911
def get_policy(request: Request): # noqa: PLR0911
"""Pick the right policy based the request's path."""
# pylint:disable=too-many-return-statements,too-complex

Expand Down
2 changes: 1 addition & 1 deletion lms/services/application_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def search( # noqa: PLR0913
)

# pylint: disable=too-complex
def _ai_search_query( # noqa: C901, PLR0913
def _ai_search_query( # noqa: PLR0913
self,
*,
id_=None,
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ ignore = [
"PLC1901",
"E721",
"C414",
"C901",
]

[tool.ruff.lint.per-file-ignores]
Expand Down

0 comments on commit 1376101

Please sign in to comment.