Skip to content

Commit 935df2a

Browse files
committed
pylint: Upgrade to latest version and pylint fixes
Signed-off-by: Denys Fedoryshchenko <[email protected]>
1 parent 2d9a852 commit 935df2a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

api/pubsub_mongo.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
# Copyright (C) 2025 Collabora Limited
44
# Author: Denys Fedoryshchenko <[email protected]>
55

6+
# pylint: disable=duplicate-code
7+
# Note: This module intentionally shares interface code with pubsub.py
8+
# as both implement the same PubSub API contract
9+
610
"""MongoDB-based Pub/Sub implementation with optional durable delivery
711
812
This module provides a hybrid Pub/Sub implementation:
@@ -310,7 +314,7 @@ def _eventhistory_to_cloudevent(self, event: Dict) -> str:
310314
ce = CloudEvent(attributes=attributes, data=event.get('data', {}))
311315
return to_json(ce).decode('utf-8')
312316

313-
# pylint: disable=too-many-arguments,too-many-positional-arguments
317+
# pylint: disable=too-many-arguments
314318
async def _get_missed_events(self, channel: str, after_seq_id: int,
315319
owner_filter: Optional[str] = None,
316320
promiscuous: bool = False,
@@ -388,7 +392,7 @@ async def subscribe(self, channel: str, user: str,
388392

389393
return sub
390394

391-
# pylint: disable=too-many-arguments,too-many-positional-arguments
395+
# pylint: disable=too-many-arguments
392396
async def _setup_durable_subscription(
393397
self, sub_id: int, subscriber_id: str,
394398
channel: str, user: str, promiscuous: bool):

docker/api/requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-r requirements-tests.txt
22
pycodestyle==2.8.0
3-
pylint==3.1.0
3+
pylint==4.0.4

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ tests = [
4343
dev = [
4444
"kernelci-api[tests]",
4545
"pycodestyle == 2.8.0",
46-
"pylint == 3.1.0",
46+
"pylint == 4.0.4",
4747
]
4848

4949
[project.urls]

0 commit comments

Comments
 (0)