ruff: enable C4 lint

This commit is contained in:
Marcel Hellwig
2026-01-04 14:03:40 +01:00
parent 2c36adfd75
commit 7ef4e52c81
2 changed files with 2 additions and 5 deletions

View File

@@ -2,7 +2,6 @@ import logging
from media_manager.indexer.schemas import IndexerQueryResult
import xml.etree.ElementTree as ET
from xml.etree.ElementTree import Element
from email.utils import parsedate_to_datetime
from datetime import datetime, timezone
@@ -33,9 +32,7 @@ class TorznabMixin:
item.find("enclosure").attrib["type"] != "application/x-bittorrent"
)
attributes: list[Element] = [
x for x in item.findall("torznab:attr", xmlns)
]
attributes = list(item.findall("torznab:attr", xmlns))
for attribute in attributes:
if is_usenet:
if attribute.attrib["name"] == "usenetdate":

View File

@@ -7,7 +7,7 @@ quote-style = "double"
extend-select = [
"ASYNC",
"B",
"COM",
"C4", "COM",
"E", "EXE",
"F", "FA", "FIX", "FLY", "FURB",
"ICN",