🎨(backend) use pylint error names instead of codes in disable comments

Replace pylint error codes with descriptive error names in disable comments
to make suppressed warnings explicit and improve code readability.
This commit is contained in:
lebaudantoine
2025-09-03 18:43:18 +02:00
committed by aleb_the_flash
parent 888fbbcd5f
commit 1f71bfc5d2
18 changed files with 18 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
"""Client serializers for the Meet core app.""" """Client serializers for the Meet core app."""
# pylint: disable=W0223,E0611 # pylint: disable=abstract-method,no-name-in-module
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _

View File

@@ -1,6 +1,6 @@
"""LiveKit Events Service""" """LiveKit Events Service"""
# pylint: disable=E1101 # pylint: disable=no-member
import uuid import uuid
from enum import Enum from enum import Enum

View File

@@ -1,6 +1,6 @@
"""Participants management service for LiveKit rooms.""" """Participants management service for LiveKit rooms."""
# pylint: disable=R0913,E0611,R0917 # pylint: disable=too-many-arguments,no-name-in-module,too-many-positional-arguments
# ruff: noqa:PLR0913 # ruff: noqa:PLR0913
import json import json

View File

@@ -2,7 +2,7 @@
Test event authentication. Test event authentication.
""" """
# pylint: disable=E1128 # pylint: disable=assignment-from-no-return
from django.test import RequestFactory from django.test import RequestFactory

View File

@@ -2,7 +2,7 @@
Test event notification. Test event notification.
""" """
# pylint: disable=E1128,W0621,W0613,W0212 # pylint: disable=assignment-from-no-return,redefined-outer-name,unused-argument,protected-access
import datetime import datetime
import smtplib import smtplib

View File

@@ -2,7 +2,7 @@
Test event parsers. Test event parsers.
""" """
# pylint: disable=W0212,W0621,W0613 # pylint: disable=protected-access,redefined-outer-name,unused-argument
from unittest import mock from unittest import mock

View File

@@ -2,7 +2,7 @@
Test RecordingEventsService service. Test RecordingEventsService service.
""" """
# pylint: disable=W0621 # pylint: disable=redefined-outer-name
from unittest import mock from unittest import mock

View File

@@ -2,7 +2,7 @@
Test recordings API endpoints in the Meet core app: save recording. Test recordings API endpoints in the Meet core app: save recording.
""" """
# pylint: disable=W0621,W0613 # pylint: disable=redefined-outer-name,unused-argument
import uuid import uuid
from unittest import mock from unittest import mock

View File

@@ -2,7 +2,7 @@
Test worker service factories. Test worker service factories.
""" """
# pylint: disable=W0212,W0621,W0613 # pylint: disable=protected-access,redefined-outer-name,unused-argument
from dataclasses import FrozenInstanceError from dataclasses import FrozenInstanceError
from unittest.mock import Mock from unittest.mock import Mock

View File

@@ -1,6 +1,6 @@
"""Test WorkerServiceMediator class.""" """Test WorkerServiceMediator class."""
# pylint: disable=W0621,W0613 # pylint: disable=redefined-outer-name,unused-argument
from unittest.mock import Mock from unittest.mock import Mock

View File

@@ -2,7 +2,7 @@
Test worker service classes. Test worker service classes.
""" """
# pylint: disable=W0212,W0621,W0613,E1101 # pylint: disable=protected-access,redefined-outer-name,unused-argument,no-member
from unittest.mock import AsyncMock, Mock, patch from unittest.mock import AsyncMock, Mock, patch

View File

@@ -2,7 +2,7 @@
Test rooms API endpoints in the Meet core app: create. Test rooms API endpoints in the Meet core app: create.
""" """
# pylint: disable=W0621,W0613 # pylint: disable=redefined-outer-name,unused-argument
from django.core.cache import cache from django.core.cache import cache
import pytest import pytest

View File

@@ -2,7 +2,7 @@
Test rooms API endpoints in the Meet core app: creation callback functionality. Test rooms API endpoints in the Meet core app: creation callback functionality.
""" """
# pylint: disable=W0621,W0613 # pylint: disable=redefined-outer-name,unused-argument
from django.core.cache import cache from django.core.cache import cache
import pytest import pytest

View File

@@ -2,7 +2,7 @@
Test rooms API endpoints in the Meet core app: invite. Test rooms API endpoints in the Meet core app: invite.
""" """
# pylint: disable=W0621,W0613 # pylint: disable=redefined-outer-name,unused-argument
import json import json
import random import random

View File

@@ -2,7 +2,7 @@
Test rooms API endpoints in the Meet core app: participants management. Test rooms API endpoints in the Meet core app: participants management.
""" """
# pylint: disable=W0621,W0613, W0212 # pylint: disable=redefined-outer-name,unused-argument,protected-access
import random import random
from unittest import mock from unittest import mock

View File

@@ -2,7 +2,7 @@
Test rooms API endpoints in the Meet core app: start recording. Test rooms API endpoints in the Meet core app: start recording.
""" """
# pylint: disable=W0621,W0613 # pylint: disable=redefined-outer-name,unused-argument
from unittest import mock from unittest import mock

View File

@@ -2,7 +2,7 @@
Test rooms API endpoints in the Meet core app: stop recording. Test rooms API endpoints in the Meet core app: stop recording.
""" """
# pylint: disable=W0621,W0613 # pylint: disable=redefined-outer-name,unused-argument
from unittest import mock from unittest import mock

View File

@@ -2,7 +2,7 @@
Test LiveKit webhook endpoint on the rooms API. Test LiveKit webhook endpoint on the rooms API.
""" """
# pylint: disable=R0913,W0621,R0917,W0613 # pylint: disable=too-many-arguments,redefined-outer-name,too-many-positional-arguments,unused-argument
import base64 import base64
import hashlib import hashlib
import json import json