refactor: Compiled ignored ruff rules in pyproject

This commit is contained in:
JSC
2025-08-01 09:40:15 +02:00
parent fceff92ca1
commit f68f4d9046
30 changed files with 22 additions and 31 deletions

View File

@@ -1,5 +1,4 @@
"""Tests for API token endpoints."""
# ruff: noqa: ARG002, PLR2004, PLC0415, BLE001, E501
from datetime import UTC, datetime, timedelta
from unittest.mock import patch

View File

@@ -1,5 +1,4 @@
"""Tests for authentication endpoints."""
# ruff: noqa: ARG002, PLR2004, E501, PLC0415, ANN401
from typing import Any
from unittest.mock import patch

View File

@@ -1,5 +1,4 @@
"""Tests for extraction API endpoints."""
# ruff: noqa: PLR2004, E501
import pytest

View File

@@ -1,5 +1,4 @@
"""Tests for player API endpoints."""
# ruff: noqa: ARG002, PLR2004, ANN001, ANN201
from unittest.mock import AsyncMock, Mock, patch

View File

@@ -1,5 +1,4 @@
"""Tests for playlist API endpoints."""
# ruff: noqa: ARG002, PLR2004, E501, PLC0415
import pytest

View File

@@ -1,5 +1,4 @@
"""Tests for socket API endpoints."""
# ruff: noqa: ARG002, PLR2004, ANN001, ANN201
from unittest.mock import AsyncMock, patch

View File

@@ -1,5 +1,4 @@
"""Tests for sound API endpoints."""
# ruff: noqa: ARG002, PLR2004, E501, PLC0415, ANN001, ANN202
from typing import TYPE_CHECKING
from unittest.mock import patch

View File

@@ -1,5 +1,4 @@
"""Tests for VLC player API endpoints."""
# ruff: noqa: ARG002, PLR2004, E501
from unittest.mock import AsyncMock

View File

@@ -1,5 +1,4 @@
"""Test configuration and fixtures."""
# ruff: noqa: ANN401, ANN001
import asyncio
from collections.abc import AsyncGenerator

View File

@@ -1,5 +1,4 @@
"""Tests for API token authentication dependencies."""
# ruff: noqa: S106
from datetime import UTC, datetime, timedelta
from unittest.mock import AsyncMock

View File

@@ -1,5 +1,4 @@
"""Tests for credit transaction repository."""
# ruff: noqa: ARG002, E501
import json
from collections.abc import AsyncGenerator

View File

@@ -1,5 +1,4 @@
"""Tests for extraction repository."""
# ruff: noqa: ANN001, ANN201
from unittest.mock import AsyncMock, Mock

View File

@@ -1,5 +1,4 @@
"""Tests for playlist repository."""
# ruff: noqa: PLR2004, ANN401
from collections.abc import AsyncGenerator
from typing import Any

View File

@@ -1,5 +1,4 @@
"""Tests for sound repository."""
# ruff: noqa: ARG002, PLR2004
from collections.abc import AsyncGenerator

View File

@@ -1,5 +1,4 @@
"""Tests for user repository."""
# ruff: noqa: ARG002
from collections.abc import AsyncGenerator

View File

@@ -1,5 +1,4 @@
"""Tests for user OAuth repository."""
# ruff: noqa: ARG002
from collections.abc import AsyncGenerator

View File

@@ -1,5 +1,4 @@
"""Tests for authentication service."""
# ruff: noqa: S106, SLF001, PLC0415
import pytest
import pytest_asyncio

View File

@@ -1,5 +1,4 @@
"""Tests for credit service."""
# ruff: noqa: ANN001, ANN201, PLR2004, E501
import json
from unittest.mock import AsyncMock, patch

View File

@@ -1,5 +1,4 @@
"""Tests for extraction service."""
# ruff: noqa: ANN001, ANN201, PLR2004, SLF001, E501
import tempfile
from pathlib import Path

View File

@@ -1,5 +1,4 @@
"""Tests for extraction background processor."""
# ruff: noqa: ANN001, ANN201, PLR2004, SLF001
from unittest.mock import AsyncMock, Mock, patch

View File

@@ -1,5 +1,4 @@
"""Tests for OAuth service."""
# ruff: noqa: ANN001, PLR2004, ANN401, PT011, ANN202, ANN003, ARG001
from typing import Any
from unittest.mock import AsyncMock, Mock, patch

View File

@@ -1,5 +1,4 @@
"""Tests for player service."""
# ruff: noqa: ANN001, ANN201, ARG002, PLR2004, SLF001, E501, SIM117, ARG005
import asyncio
import threading

View File

@@ -1,5 +1,4 @@
"""Tests for playlist service."""
# ruff: noqa: ANN001, ARG002, PLR2004, E501, PLC0415
from collections.abc import AsyncGenerator

View File

@@ -1,5 +1,4 @@
"""Tests for socket service."""
# ruff: noqa: ANN001, ANN201, ARG002, PLR2004, SLF001, E501, ANN202
from unittest.mock import AsyncMock, patch

View File

@@ -1,5 +1,4 @@
"""Tests for sound normalizer service."""
# ruff: noqa: ANN001, ANN201, ARG002, PLR2004, SLF001, E501, PLC0415
import tempfile
from pathlib import Path

View File

@@ -1,5 +1,4 @@
"""Tests for sound scanner service."""
# ruff: noqa: ANN001, ANN201, ARG002, PLR2004, SLF001, PLC0415, SIM117
import tempfile
from pathlib import Path

View File

@@ -1,5 +1,4 @@
"""Tests for VLC player service."""
# ruff: noqa: ANN001, ANN201, PLR2004, SLF001, SIM117, E501, ANN202, PLC0415
import asyncio
from pathlib import Path

View File

@@ -1,5 +1,4 @@
"""Tests for cookie utilities."""
# ruff: noqa: ANN201, E501
from app.utils.cookies import extract_access_token_from_cookies, parse_cookies

View File

@@ -1,5 +1,4 @@
"""Tests for credit decorators."""
# ruff: noqa: ARG001, ANN001, E501, PT012
from collections.abc import Callable
from typing import Never